Re: psql \G command -- send query and output using extended format - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql \G command -- send query and output using extended format
Date
Msg-id 23332.1207258482@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql \G command -- send query and output using extended format  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: psql \G command -- send query and output using extended format  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Bruce Momjian escribi�:
>> Martijn van Oosterhout wrote:
>>> I was thinking that maybe \x should have a one-shot mode, i.e.
>>> \x <query>
>>> does it only for this one statement. It would solve the OPs problem.
>> 
>> But break for others who want all output \x.

> I think Martijn is proposing using it as some sort of prefix which would
> take effect only on the current query.

A bigger problem is that it doesn't play nicely at all with multi-line
queries.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: best way for export gram.y symbols
Next
From: Svenne Krap
Date:
Subject: Re: [GENERAL] SHA1 on postgres 8.3