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

From Tatsuo Ishii
Subject Re: Add %r substitution for psql prompts to show recovery status
Date
Msg-id 20171208.095448.1318946561859435638.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Add %r substitution for psql prompts to show recovery status  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Add %r substitution for psql prompts to show recovery status  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Re: Add %r substitution for psql prompts to show recovery status  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
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?

Yeah. I think we need some from help backend for this. For example, a
parameter status message can be used here.  If PostgreSQL moves to the
recovery state or vice versa, PostgreSQL sends the parameter status
message to frontend.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: [Sender Address Forgery]Re: [HACKERS] path toward fasterpartition pruning
Next
From: Peter Geoghegan
Date:
Subject: Re: [HACKERS] Parallel tuplesort (for parallel B-Tree index creation)