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

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Add %r substitution for psql prompts to show recovery status
Дата
Msg-id 20171208.095448.1318946561859435638.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: Add %r substitution for psql prompts to show recovery status  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Add %r substitution for psql prompts to show recovery status
Re: Add %r substitution for psql prompts to show recovery status
Список 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 по дате отправления:

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: [Sender Address Forgery]Re: [HACKERS] path toward fasterpartition pruning
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [HACKERS] Parallel tuplesort (for parallel B-Tree index creation)