Fix uninitialized value in segno calculation
Alvaro Herrera <alvherre@alvh.no-ip.org>
Fix uninitialized value in segno calculation Remove previous hack in KeepLogSeg that added a case to deal with a (badly represented) invalid segment number. This was added for the sake of GetWALAvailability. But it's not needed if in that function we initialize the segment number to be retreated to the currently being written segment, so do that instead. Per valgrind-running buildfarm member skink, and some sparc64 animals. Discussion: https://postgr.es/m/1724648.1594230917@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +9 −6 |
Discussion
- min_safe_lsn column in pg_replication_slots view 72 messages · 2020-06-15 → 2020-07-14