temporal_tables VS simonwillisonblog-backup

Compare temporal_tables vs simonwillisonblog-backup and see what are their differences.

temporal_tables

Postgresql temporal_tables extension in PL/pgSQL, without the need for external c extension. (by nearform)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
temporal_tables simonwillisonblog-backup
6 7
576 15
4.0% -
4.9 9.9
5 months ago 3 days ago
PLpgSQL
GNU General Public License v3.0 or later -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

temporal_tables

Posts with mentions or reviews of temporal_tables. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-20.
  • PostgreSQL temporal_tables extension in PL/pgSQL
    1 project | news.ycombinator.com | 6 Dec 2023
  • Versioning data in Postgres? Testing a Git like approach
    9 projects | news.ycombinator.com | 20 Oct 2023
    It was reimplemented in pure SQL here https://github.com/nearform/temporal_tables for this purpose
  • All the ways to capture changes in Postgres
    12 projects | news.ycombinator.com | 22 Sep 2023
    I enjoyed this blog. I think it provides a great succinct overview of various approaches native to Postgres.

    For the "capture changes in an audit table" section, I've had good experiences at a previous company with the Temporal Tables pattern. Unlike other major RDBMS vendors, it's not built into Postgres itself, but there's a simple pattern [1] you can leverage with a SQL function.

    This allows you to see a table's state as of a specific point in time. Some sample use cases:

    - "What was this user's configuration on Aug 12?"

    - "How many records were unprocessed at 11:55pm last night?"

    - "Show me the diff on feature flags between now and a week ago"

    [1]: https://github.com/nearform/temporal_tables

  • Show HN: I made a CMS that uses Git to store your data
    13 projects | news.ycombinator.com | 23 Oct 2022
    One of these Postgres-based implementations of SQL:2011's temporal versioning features might get you close enough:

    - https://github.com/nearform/temporal_tables

  • How to implement row changes history?
    1 project | /r/PostgreSQL | 27 Jul 2021
    You don't really need to install an extension to use temporal tables, there is an alternative (https://github.com/nearform/temporal_tables) implemented purely as a plpgsql trigger so that it works everywhere.
  • Temporal Tables PostgreSQL Extension
    3 projects | news.ycombinator.com | 9 Apr 2021
    I was part of a team at NearForm using this for a project on an EC2 instance. In order to move to AWS RDS we had to recreate the functionality of temporal_tables as a PostgreSQL function, rather than extension.

    When we switched, we found that although there were minor bugs, we didn't have any noticeable loss of performance and we have used it ever since for many projects.

    https://github.com/nearform/temporal_tables

    If you're also limited by cloud services and the extensions limitations, this is a great solution.

simonwillisonblog-backup

Posts with mentions or reviews of simonwillisonblog-backup. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-02.
  • Tracking SQLite Database Changes in Git
    7 projects | news.ycombinator.com | 2 Nov 2023
    > I’ve been running that for a couple of years in this repo: https://github.com/simonw/simonwillisonblog-backup - which provides a backup of my blog’s PostgreSQL Django database (first converted to SQLite and then dumped out using sqlite-

    I'm curious, what is the reason you chose not to use pgdump, but instead opted to convert to to sqlite and then dump the DB using sqlite-diffable?

    On a project I'm working on, I'd like to dump our Postgres schema into individual files for each object (i.e., one file for each table, function, stored proc, etc.), but haven't spent enough time to see if pgdump could actually do that. We're just outputting files by object type for now (one tables, function, and stored procs files).

  • Versioning data in Postgres? Testing a Git like approach
    9 projects | news.ycombinator.com | 20 Oct 2023
  • WordPress Core to start using SQLite Database
    5 projects | news.ycombinator.com | 26 Jul 2023
    My personal blog runs on Django + PostgreSQL, and I got fed up of not having a version history of changes I made to my content there.

    I solved that by setting up a GitHub repo that mirrors the content from my database to flat files a few times a day and commits any changes.

    It's worked out really well so far. It wasn't much trouble to setup and it's now been running for nearly three years, capturing 1400+ changes.

    I'd absolutely consider using the same technique for a commercial project in the future:

    Latest commits are here: https://github.com/simonw/simonwillisonblog-backup/commits/m...

    Workflow is https://github.com/simonw/simonwillisonblog-backup/blob/main...

  • How Postgres Triggers Can Simplify Your Back End Development
    2 projects | news.ycombinator.com | 23 Apr 2023
    If you really, really need to be able to see a SQL schema representing the current state, a cheap trick is to run an automation on every deploy that snapshots the schema and writes it to a GitHub repository.

    I do a version of that for my own (Django-powered) blog here: https://github.com/simonw/simonwillisonblog-backup/blob/main...

  • Blog with Markdown and Git, and degrade gracefully through time
    14 projects | news.ycombinator.com | 8 Feb 2021
    My blog is Django and PostgreSQL on Heroku, but last year I decided I wanted a reliable long-term public backup... so I set up a scheduled GitHub Actions workflow to back it up to a git repository.

    Bonus feature: since it runs nightly it gives me diffs if changes I make to my content, including edits to old posts.

    The backups are in this repo: https://github.com/simonw/simonwillisonblog-backup

What are some alternatives?

When comparing temporal_tables and simonwillisonblog-backup you can also consider the following projects:

temporal_tables - Temporal Tables PostgreSQL Extension

WriteFreely - A clean, Markdown-based publishing platform made for writers. Write together and build a community.

pgkit - Pgkit - Backup, PITR and recovery management made easy

blissue - A blog based on github issues

walex - Postgres change events (CDC) in Elixir

docs - This is a repo of the RetroArch official document page.

pg-event-proxy-example - Send NOTIFY and WAL events from PostgreSQL to upstream services (amqp / redis / mqtt)

wayback-machine-downloader - Download an entire website from the Wayback Machine.

maxwell - Maxwell's daemon, a mysql-to-json kafka producer

beleyBlog - The non-content portion for my blog at www.chrisbeley.com

connectors - Connectors for capturing data from external data sources

go-readability - A Go implementation of the readability algorithm by arc90 labs