-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adding pg_legacy_replication verified source using decoderbufs #589
Open
neuromantik33
wants to merge
75
commits into
dlt-hub:master
Choose a base branch
from
neuromantik33:pg-legacy-replcation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ting other sources -_-
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Differences between
pg_legacy_replication
andpg_replication
Overview
pg_legacy_replication
is a fork of the verifiedpg_replication
source. The primary goal of this fork is to provide logical replication capabilities for Postgres instances running versions earlier than 10, when thepgoutput
plugin was not yet available. This fork draws inspiration from the originalpg_replication
source and thedecoderbufs
library, which is actively maintained by Debezium.Key Differences from
pg_replication
Replication User Ownership Requirements
One of the limitations of native Postgre replication is that the replication user must own the tables in order to add them to a publication.
Additionally, once a table is added to a publication, it cannot be removed, requiring the creation of a new replication slot, which results in the loss of any state tracking.
Limitations in
pg_replication
The current pg_replication implementation has several limitations:
CREATE
access to the source database in order to perform the initial snapshot.While the
pg_legacy_replication
source theoretically reads the entire WAL across all schemas, the current implementation using dlt transformers restricts this functionality. In practice, this has not been a common use case.merge
write disposition, which replicates live data without tracking changes over time.Features of
pg_legacy_replication
This fork of
pg_replication
addresses the aforementioned limitations and introduces the following improvements:pg_backup
.pyarrow
and parquet formats for efficient data storage and transfer. A dedicated backend has been implemented to support these formats.Next steps
wal2json
, as opposed to on-premise or Google Cloud SQL instances that supportdecoderbufs
.