postgresql-contrib VS mssql-changefeed

Compare postgresql-contrib vs mssql-changefeed and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
postgresql-contrib mssql-changefeed
3 4
13 14
- -
10.0 6.6
almost 6 years ago 4 months ago
PLpgSQL Go
- MIT 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.

postgresql-contrib

Posts with mentions or reviews of postgresql-contrib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-25.
  • PostgreSQL 16 Beta 1
    2 projects | news.ycombinator.com | 25 May 2023
    You can use https://github.com/twosigma/postgresql-contrib/blob/master/m... and write triggers to update your views or mark them as needing asynchronous refreshes. It's not as automatic as what you'd like, but it's a lot better than having to keep waiting.
  • The Next Generation of Materialize
    9 projects | news.ycombinator.com | 3 Oct 2022
    I use PG with an alternative materialized views implementation[0] that is pure PlPgSQL and that exposes real tables that can be used to write to in triggers, and where the views can be marked stale too.

    This means hand-coding triggers to keep the materializations up to date, or else to mark them as out of date (because maybe some operations would be slow or hard to hand-code triggers for), but this works remarkably well.

    As a bonus, I get an update history table that can be used to generate updates to external systems.

    In principle one can get the AST for a VIEW's query from the PG catalog and use that generate triggers on the tables it queries to keep it up to date. In practice that's only trivial for some kinds of queries, and I've not written such a tool yet.

    [0] https://github.com/twosigma/postgresql-contrib/blob/master/m...

mssql-changefeed

Posts with mentions or reviews of mssql-changefeed. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-14.
  • How to Listen to Database Changes Using Postgres Triggers in Elixir
    10 projects | news.ycombinator.com | 14 Jun 2023
    We made mssql-changefeed for this purpose:

    https://github.com/vippsas/mssql-changefeed

    V1 requires to run a sweeper procedure in the background, but an upcoming v2 version does without the sweep loop. Unfortunately too fresh for readme to be updated, but relevant lines in tests to show it off:

    https://github.com/vippsas/mssql-changefeed/blob/v1-lazy/go/...

    https://github.com/vippsas/mssql-changefeed/blob/v1-lazy/go/...

    https://github.com/vippsas/mssql-changefeed/blob/v1-lazy/go/...

    Library itself:

    https://github.com/vippsas/mssql-changefeed/blob/v1-lazy/mig...

  • Push-Based Outbox Pattern with Postgres Logical Replication
    6 projects | news.ycombinator.com | 28 Oct 2022
    Not OP, but there is an approach here of using a dedicated loop worker to assign post-commit ID sequence. I.e. using the outbox pattern once, simply to assign a post-commit ID.

    https://github.com/vippsas/mssql-changefeed/blob/main/MOTIVA...

    I wish DBs had this more built in, it seems a critical feature of a DB these days and the commit log already have very similar sequence numbers internally...

  • The Next Generation of Materialize
    9 projects | news.ycombinator.com | 3 Oct 2022
    We do something similar, but in 2), instead of using the outbox pattern, we make use (in several different settings) of integers that are guaranteed to increment in commit order, then each consumer can track where their cursor is on the feed of changes. This requires some more coordination but it means that publishers of changes don't need one outbox per consumer or similar.

    Then you can have "processes" that query for new data in an input table, and update aggregates/derived tables from that simply by "select * ... where ChangeSequenceNumber > @MaxSequenceNumberFromPreviousExecution"...

    The idea here implemented for Microsoft SQL for the OLTP case:

    https://github.com/vippsas/mssql-changefeed

What are some alternatives?

When comparing postgresql-contrib and mssql-changefeed you can also consider the following projects:

pg_ivm - IVM (Incremental View Maintenance) implementation as a PostgreSQL extension

marmot - A distributed SQLite replicator built on top of NATS

risingwave - Cloud-native SQL stream processing, analytics, and management. KsqlDB and Apache Flink alternative. 🚀 10x more productive. 🚀 10x more cost-efficient.

supavisor - A cloud-native, multi-tenant Postgres connection pooler.

ksql - The database purpose-built for stream processing applications.

pgcat - PostgreSQL pooler with sharding, load balancing and failover support.

materialize - The data warehouse for operational workloads.

zeroeventhub

rust-postgres - Native PostgreSQL driver for the Rust programming language

postgrex_pubsub - A helper to turn postgres mutations into a pubsub channel

rust-postgres - Native PostgreSQL driver for the Rust programming language