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

From Robert Haas
Subject Re: Add %r substitution for psql prompts to show recovery status
Date
Msg-id CA+TgmoZkyE_UXn5k6eSaxyXX+2UOzkoqSmLGmF_yMb2k+CMXrQ@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>)
Responses Re: Add %r substitution for psql prompts to show recovery status  (Tatsuo Ishii <ishii@sraoss.co.jp>)
List pgsql-hackers
On Wed, Dec 6, 2017 at 9:19 PM, Ian Barwick <ian.barwick@2ndquadrant.com> wrote:
> Note this substitution sends a "pg_is_in_recovery()" query to the server
> each time it's encountered; unless there's something I'm overlooking I
> think that's the only reliable way to determine current recovery status.

That seems kinda painful.

And what happens in an aborted transaction?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

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