Re: Proposal for changes to recovery.conf API
Abhijit Menon-Sen <ams@2ndquadrant.com>
From: Abhijit Menon-Sen <ams@2ndQuadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-hackers@postgresql.org, Simon Riggs <simon@2ndquadrant.com>, Fujii Masao <masao.fujii@gmail.com>
Date: 2016-09-06T07:06:55Z
Lists: pgsql-hackers
At 2016-09-06 14:40:54 +0900, michael.paquier@gmail.com wrote: > > my best advice here is to make all those recovery_target_* parameters > PGC_POSTMASTER so as they are loaded only once when the server starts, > and then we define the recovery target type used in the startup > process instead of trying to do so at GUC level. I understand your approach in light of the GUC code, but I see things a bit differently—the complexity comes largely from the specific handling of recovery_target. I'll try to come up with a way to do it better. If not, we have your suggestion to fall back on. > + else if (recovery_target_lsn != 0) > + recovery_target = RECOVERY_TARGET_LSN; > This needs to check for InvalidXLogRecPtr. Of course, thanks. Fixed locally in all the relevant places. Will repost whenever there are other substantive changes. -- Abhijit