Search code examples
postgresqlnpgsql

Is Change tracking feature available in PostgreSQL similar to that of Microsoft SQL Server?


Is Change tracking feature available in PostgreSQL similar to that of Microsoft SQL Server. Actually we are using PostgreSQL and MS SQL together and want to move changed data from PostgreSQL to MS SQL using change tracking. How to achieve this in best possible and lightweight way?


Solution

  • Yes, there is something like that.

    It's called logical decoding and is part of the infrastructure for logical replication. While logical replication can only be used between two Postgres instances, logical decoding can be used independently of that (if you write the code to consume the messages).

    Tools like Debezium make use of that