My compiler has the following complaint:
../postgresql/src/backend/postmaster/walsummarizer.c: In function ‘GetOldestUnsummarizedLSN’:
../postgresql/src/backend/postmaster/walsummarizer.c:540:32: error: ‘unsummarized_lsn’ may be used uninitialized in
thisfunction [-Werror=maybe-uninitialized]
540 | WalSummarizerCtl->pending_lsn = unsummarized_lsn;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
I haven't looked closely to see whether there is actually a problem here,
but the attached patch at least resolves the warning.
--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com