BEHIND THE SCENES: SPEEDING UP PGSTREAM SNAPSHOTS FOR POSTGRESQL
pgstream is an open-source change data capture tool that improved its snapshot performance for PostgreSQL databases. The initial implementation used native tools for schema capture and transaction snapshots for data reads, but suffered from slow write speeds. By switching to binary COPY FROM for bulk inserts and deferring index creation, pgstream improved its snapshot performance, surpassing pg_dump/pg_restore in speed.