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

Maintain indexes when updating pglogical.sequence_state. #435

Open
wants to merge 1 commit into
base: REL2_x_STABLE
Choose a base branch
from

Conversation

nmisch
Copy link
Contributor

@nmisch nmisch commented Aug 16, 2023

The first non-HOT update corrupted the primary key index.

The heapallindexed() implementation comes from:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=5184932432

The first non-HOT update corrupted the primary key index.  This did not
affect ordinary operations, because pglogical's own scans of
pglogical.sequence_state are all sequential scans.  The amcheck
extension does witness the problem.  Manual queries of sequence_state,
albeit not a documented or otherwise expected use case, could return
wrong answers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant