Re: Add %r substitution for psql prompts to show recovery status - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: Add %r substitution for psql prompts to show recovery status
Date
Msg-id CAKFQuwZtSX-xx6g8PZfm0vWrXrK=D==9wRA3BcashT3Ucx8GuQ@mail.gmail.com
Whole thread Raw
In response to Add %r substitution for psql prompts to show recovery status  (Ian Barwick <ian.barwick@2ndquadrant.com>)
List pgsql-hackers
On Wed, Dec 6, 2017 at 7:19 PM, Ian Barwick <ian.barwick@2ndquadrant.com> wrote:
A possible alternative would be only to check the status each time a new
database connection is made, but that wouldn't catch the case where the
server has been promoted.

​Can we cache a false pg_is_in_recovery response and return that instead of querying the server?

David J.

pgsql-hackers by date:

Previous
From: legrand legrand
Date:
Subject: Re: Partition-wise aggregation/grouping
Next
From: David Rowley
Date:
Subject: Re: [HACKERS] Proposal: Local indexes for partitioned table