PostgreSQL tip: pg_export_snapshot pg_export_snapshot lets you share the same transaction snapshot across multiple sessions, so they all see exactly the same data state. Why it matters 👇 • Guarantees consistent reads across connections • Useful for logical replication, backups, and coordinated exports • Built on PostgreSQL’s MVCC — powerful, but often overlooked More about pg_export_snapshot can be found in my latest article, link in comments. #postgres #postgresql #sql #dba #dataops
Wtf is a shapshot? 🤣
This feature can be used for the initial sync for a logical replication of a very large table in a parallelized way, you can create multiple workers to perform the sync based on the primary key or another serial field.
https://tomasz-gintowt.medium.com/pg-export-snapshot-what-it-is-and-how-to-use-it-03ce5f41166c