temporal_tables VS pg_bitemporal

Compare temporal_tables vs pg_bitemporal and see what are their differences.

temporal_tables

Temporal Tables PostgreSQL Extension (by arkhipov)

pg_bitemporal

Bitemporal tables in Postgres (by scalegenius)
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 pg_bitemporal
16 7
897 140
- 1.4%
4.2 0.0
2 months ago about 2 years ago
C PLpgSQL
BSD 2-clause "Simplified" License BSD 3-clause "New" or "Revised" License
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-09-22.

pg_bitemporal

Posts with mentions or reviews of pg_bitemporal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-24.
  • The Guide to PostgreSQL Data Change Tracking
    5 projects | news.ycombinator.com | 24 Feb 2024
    I feel like i keep yelling the following, but bitemporal tables.

    - https://aiven.io/blog/two-dimensional-time-with-bitemporal-d...

    - https://github.com/scalegenius/pg_bitemporal

    4 timestamps and some ugly queries.

  • Eventual Business Consistency
    1 project | news.ycombinator.com | 5 Aug 2023
    People here may also be interested to see this analysis of the state of SQL:2011 "temporal table" feature adoption: https://illuminatedcomputing.com/posts/2019/08/sql2011-surve...

    I don't think much has really changed since, and I'm not sure Postgres is any closer to addressing this natively (although there have been extensions, e.g. https://github.com/scalegenius/pg_bitemporal).

  • Show HN: I made a CMS that uses Git to store your data
    13 projects | news.ycombinator.com | 23 Oct 2022
  • Record history / Temporal table question
    1 project | /r/PostgreSQL | 25 Feb 2022
    Something more sophisticated would be https://github.com/scalegenius/pg_bitemporal
  • PostgreSQL 14 Released
    1 project | /r/programming | 2 Oct 2021
  • Bitemporal History
    6 projects | news.ycombinator.com | 8 Apr 2021
    Sure, I can appreciate that native support for a feature like this is nice.

    As I understand it, most implementations (including another one for bitemporality[1]) involve either audit tables, as you mention, and/or additional support columns. It's as if the "now" representation is simply a narrow lens onto the underlying data.

    That said, PostgreSQL encodes and has battle-tested decades of database functionality including an ecosystem around those, so I'd be a little wary of switching technology even if it does solve one individual problem thoroughly. Everything has to start somewhere, though.

    [1] - https://github.com/scalegenius/pg_bitemporal

What are some alternatives?

When comparing temporal_tables and pg_bitemporal you can also consider the following projects:

TimescaleDB - An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.

Reladomo - Reladomo is an enterprise grade object-relational mapping framework for Java.

pgaudit - PostgreSQL Audit Extension

crux - General purpose bitemporal database for SQL, Datalog & graph queries. Backed by @juxt [Moved to: https://github.com/xtdb/xtdb]

dolt - Dolt – Git for Data

wasmer.io - The Wasmer.io website

datasette - An open source multi-tool for exploring and publishing data

outstatic - Outstatic - A static CMS for Next.js

beekeeper-studio - Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more. Linux, MacOS, and Windows.

Kirby - Kirby's core application folder

debezium - Change data capture for a variety of databases. Please log issues at https://issues.redhat.com/browse/DBZ.

Publii - The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.