proposal - psql output file write mode

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема proposal - psql output file write mode
Дата
Msg-id CAFj8pRCish6bByKukG5tpuN4yc3+QM3xFBFJmX1i76ZYeEaEZQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: proposal - psql output file write mode  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Hi

I am playing with pspg and inotify support. It is working pretty well and now can be nice if forwarding to output file can be configured little bit more. Now, only append mode is supported. But append mode doesn't work with pspg pager. So I propose new pset option "file_output_mode" with two possible values "append" (default, current behave) and "rewrite" (new mode).

Usage:

\pset file_ouput_mode rewrite

In this mode, the file is opened before printing and it is closed after printing.

What do you think about this proposal?

Regards

Pavel


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: error context for vacuum to include block number
Следующее
От: David Rowley
Дата:
Сообщение: Re: Berserk Autovacuum (let's save next Mandrill)