Skip to content
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

Implement Logical Decoding compatibility with Postgres 9.6. #124

Merged
merged 3 commits into from
Oct 12, 2022

Conversation

dimitri
Copy link
Owner

@dimitri dimitri commented Oct 11, 2022

Several function and column names have changed (xlog to wal) between Postgres major versions 9.6 and 10, and also in Postgres 9.6 creating a logical replication slot seems to always export a (new) snapshot.

In this PR we adjust pgcopydb behavior to rely on the logical replication protocol CREATE_REPLICATION_SLOT command to export our snapshot when the option --follow is used and the source server is Postgres 9.6.

Fixes #105.

Several function and column names have changed (xlog to wal) between
Postgres major versions 9.6 and 10, and also in Postgres 9.6 creating a
logical replication slot seems to always export a (new) snapshot.

In this PR we adjust pgcopydb behavior to rely on the logical replication
protocol CREATE_REPLICATION_SLOT command to export our snapshot when the
option --follow is used and the source server is Postgres 9.6.
@dimitri dimitri added bug Something isn't working enhancement New feature or request labels Oct 11, 2022
Both needed special attention, in particular in the test suite.
@dimitri dimitri merged commit 6bcf3f2 into main Oct 12, 2022
@dimitri dimitri deleted the compat/postgres-9.6 branch October 12, 2022 11:44
arajkumar added a commit to arajkumar/pgcopydb that referenced this pull request Jun 26, 2024
bbc8961 (PG to PG): Use pgcopydb for initial data copy (dimitri#123)
613e011 Problem: Table data filtering is not working on PG to TS (dimitri#122)
324f635 Cover case sensitive table data filtering (dimitri#121)
881816f Problem: Vacuum worker exits early after table copy (dimitri#116)
000b3b2 fix: grant with admin and inherit true

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] Online migration fails for PostgreSQL 9.6.
1 participant