pgsql: Prevent underflow in KeepLogSeg().

2023-04-27 Thread Nathan Bossart
Prevent underflow in KeepLogSeg(). The call to XLogGetReplicationSlotMinimumLSN() might return a greater LSN than the one given to the function. Subsequent segment number calculations might then underflow, which could result in unexpected behavior when removing or recyling WAL files. This was in

pgsql: Prevent underflow in KeepLogSeg().

2023-04-27 Thread Nathan Bossart
Prevent underflow in KeepLogSeg(). The call to XLogGetReplicationSlotMinimumLSN() might return a greater LSN than the one given to the function. Subsequent segment number calculations might then underflow, which could result in unexpected behavior when removing or recyling WAL files. This was in

pgsql: Prevent underflow in KeepLogSeg().

2023-04-27 Thread Nathan Bossart
Prevent underflow in KeepLogSeg(). The call to XLogGetReplicationSlotMinimumLSN() might return a greater LSN than the one given to the function. Subsequent segment number calculations might then underflow, which could result in unexpected behavior when removing or recyling WAL files. This was in

pgsql: Prevent underflow in KeepLogSeg().

2023-04-27 Thread Nathan Bossart
Prevent underflow in KeepLogSeg(). The call to XLogGetReplicationSlotMinimumLSN() might return a greater LSN than the one given to the function. Subsequent segment number calculations might then underflow, which could result in unexpected behavior when removing or recyling WAL files. This was in