We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Logical Replication handling of large transactions: Hou Zhijie & Hayato Kuroda - PGCon 2023
Logical Replication handling of large transactions: Effective strategies for replication, streaming, and storage.
- Logical decoding and replication handle large transactions by streaming chunks and storing them in temporary files or disk.
-
The
max-parallel-apply-workers-per-subscriptionGUC parameter controls the number of parallel workers per subscription. - In parallel mode, the apply worker receives messages and applies them immediately, without waiting for commit messages.
-
The
streamingsubscription parameter specifies whether in-progress transactions can be streamed. - Logical decoding can be fine-grained controlled over both the physical and logical applications.
-
The
pg_logical_sortfunction can be used to extract changes from the publication. -
The
create-publicationcommand is used to create a publication and thecreate-subscriptioncommand is used to create a subscription. -
The
pg_start_activityandpg_start_subscriptionsystem views provide information about the status of logical decoding and replication. -
The
pg_logical_decoding_workmanparameter sets the maximum amount of memory used by the logical decoding workman. -
The
pg_publicationsystem catalog stores information about publications and subscriptions. -
The
pg_publication_systemcatalog stores information about system views and functions. -
The
pg_logical_decodingfunction can be used to decode and apply changes to the database. -
The
pg_applyfunction can be used to apply changes to the database. -
The
pg_streamfunction can be used to stream changes to the database. -
The
pg_skipfunction can be used to skip transactions in the replication process. -
The
pg_commitfunction can be used to commit transactions in the replication process. -
The
pg_abortfunction can be used to abort transactions in the replication process. -
The
pg_preparefunction can be used to prepare transactions in the replication process. -
The
pg_commit_preparedfunction can be used to commit prepared transactions in the replication process. -
The
pg_stream_commitfunction can be used to stream and commit transactions in the replication process. -
The
pg_stream_abortfunction can be used to stream and abort transactions in the replication process. -
The
pg_stream_preparefunction can be used to stream and prepare transactions in the replication process. -
The
pg_stream_commit_preparedfunction can be used to stream and commit prepared transactions in the replication process. -
The
pg_logical_decoding_workmanparameter sets the maximum amount of memory used by the logical decoding workman. -
The
pg_logical_decoding_workmanfunction can be used to decode and apply changes to the database. -
The
pg_applyfunction can be used to apply changes to the database. -
The
pg_streamfunction can be used to stream changes to the database. -
The
pg_skipfunction can be used to skip transactions in the replication process. -
The
pg_commitfunction can be used to commit transactions in the replication process. -
The
pg_abortfunction can be used to abort transactions in the replication process. -
The
pg_preparefunction can be used to prepare transactions in the replication process. -
The
pg_commit_preparedfunction can be used to commit prepared transactions in the replication process. -
The
pg_stream_commitfunction can be used to stream and commit transactions in the replication process. -
The
pg_stream_abortfunction can be used to stream and abort transactions in the replication process. -
The
pg_stream_preparefunction can be used to stream and prepare transactions in the replication process. -
The
pg_stream_commit_preparedfunction can be used to stream and commit prepared transactions in the replication process.