Re: trying again to get incremental backup - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: trying again to get incremental backup
Date
Msg-id 20231223215147.GA69623@nathanxps13
Whole thread Raw
In response to Re: trying again to get incremental backup  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: trying again to get incremental backup
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: broken master regress tests
Next
From: Przemysław Sztoch
Date:
Subject: Re: date_trunc function in interval version