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 20171213.131725.779835663362595919.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: Add %r substitution for psql prompts to show recovery status  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Список pgsql-hackers
>> 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.
>>
> 
> If we would use parameter status messages, then can we handle compatibility
> correctly?  So that new psql can work with old backend without errors (and
> without recovery status display, for sure),

I suppose so.

> and old psql can work with new
> backend without errors.

It should work because any frontend program should ignore parameter
status messages they do not know, according to the docs.

> Because seeing recovery status in psql prompt is very neat.  But execution
> of extra query each time doesn't seem like reasonable price for it...

I think so.

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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Using ProcSignal to get memory context stats from a running backend
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] SERIALIZABLE with parallel query