Re: Don't wake up to check trigger file if none is configured - Mailing list pgsql-hackers

From Jeff Janes
Subject Re: Don't wake up to check trigger file if none is configured
Date
Msg-id CAMkU=1zudXwGfYEs_ctbiCxayzmA2DKJLf472C6UapiAzPGOtQ@mail.gmail.com
Whole thread Raw
In response to Don't wake up to check trigger file if none is configured  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
On Sat, Nov 24, 2018 at 11:29 AM Jeff Janes <jeff.janes@gmail.com> wrote:
A streaming replica waiting on WAL from the master will wake up every 5 seconds to check for a trigger file.  This is pointless if no trigger file has been configured.

The attached patch suppresses the timeout when there is no trigger file configured.

Rebased over the removal of recovery.conf and renaming of TriggerFile.

If the promote_trigger_file param is someday made responsive to SIGHUP,  I think this will just continue to do the right thing without further modification.

Cheers,

Jeff
Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Add WL_EXIT_ON_PM_DEATH pseudo-event.
Next
From: Laurenz Albe
Date:
Subject: Re: Updated backup APIs for non-exclusive backups