Re: Add %r substitution for psql prompts to show recovery status

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ian Barwick <ian(dot)barwick(at)2ndquadrant(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add %r substitution for psql prompts to show recovery status
Date: 2017-12-07 21:41:55
Message-ID: CAKFQuwZtSX-xx6g8PZfm0vWrXrK=D==9wRA3BcashT3Ucx8GuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 6, 2017 at 7:19 PM, Ian Barwick <ian(dot)barwick(at)2ndquadrant(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2017-12-07 21:43:40 Re: [HACKERS] Proposal: Local indexes for partitioned table
Previous Message legrand legrand 2017-12-07 21:38:43 Re: Partition-wise aggregation/grouping