proposal - psql output file write mode - Mailing list pgsql-hackers

From Pavel Stehule
Subject proposal - psql output file write mode
Date
Msg-id CAFj8pRCish6bByKukG5tpuN4yc3+QM3xFBFJmX1i76ZYeEaEZQ@mail.gmail.com
Whole thread Raw
Responses Re: proposal - psql output file write mode  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: error context for vacuum to include block number
Next
From: David Rowley
Date:
Subject: Re: Berserk Autovacuum (let's save next Mandrill)