pgsql: Fix a possibility of logical replication slot's restart_lsn goin

2024-11-15 Thread Masahiko Sawada
Fix a possibility of logical replication slot's restart_lsn going backwards. Previously LogicalIncreaseRestartDecodingForSlot() accidentally accepted any LSN as the candidate_lsn and candidate_valid after the restart_lsn of the replication slot was updated, so it potentially caused the restart_lsn

pgsql: Fix a possibility of logical replication slot's restart_lsn goin

2024-11-15 Thread Masahiko Sawada
Fix a possibility of logical replication slot's restart_lsn going backwards. Previously LogicalIncreaseRestartDecodingForSlot() accidentally accepted any LSN as the candidate_lsn and candidate_valid after the restart_lsn of the replication slot was updated, so it potentially caused the restart_lsn

pgsql: Fix a possibility of logical replication slot's restart_lsn goin

2024-11-15 Thread Masahiko Sawada
Fix a possibility of logical replication slot's restart_lsn going backwards. Previously LogicalIncreaseRestartDecodingForSlot() accidentally accepted any LSN as the candidate_lsn and candidate_valid after the restart_lsn of the replication slot was updated, so it potentially caused the restart_lsn

pgsql: Fix a possibility of logical replication slot's restart_lsn goin

2024-11-15 Thread Masahiko Sawada
Fix a possibility of logical replication slot's restart_lsn going backwards. Previously LogicalIncreaseRestartDecodingForSlot() accidentally accepted any LSN as the candidate_lsn and candidate_valid after the restart_lsn of the replication slot was updated, so it potentially caused the restart_lsn

pgsql: Fix a possibility of logical replication slot's restart_lsn goin

2024-11-15 Thread Masahiko Sawada
Fix a possibility of logical replication slot's restart_lsn going backwards. Previously LogicalIncreaseRestartDecodingForSlot() accidentally accepted any LSN as the candidate_lsn and candidate_valid after the restart_lsn of the replication slot was updated, so it potentially caused the restart_lsn

pgsql: Fix a possibility of logical replication slot's restart_lsn goin

2024-11-15 Thread Masahiko Sawada
Fix a possibility of logical replication slot's restart_lsn going backwards. Previously LogicalIncreaseRestartDecodingForSlot() accidentally accepted any LSN as the candidate_lsn and candidate_valid after the restart_lsn of the replication slot was updated, so it potentially caused the restart_lsn