Re: psql \G command -- send query and output using extended format

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Dawid Kuroczko <qnex42(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql \G command -- send query and output using extended format
Date: 2008-04-03 21:34:42
Message-ID: 23332.1207258482@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Alvaro Herrera <alvherre(at)commandprompt(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Svenne Krap 2008-04-03 21:39:30 Re: [GENERAL] SHA1 on postgres 8.3
Previous Message Tom Lane 2008-04-03 21:33:11 Re: best way for export gram.y symbols

Browse pgsql-patches by date

  From Date Subject
Next Message Theo Schlossnagle 2008-04-03 21:50:23 Expose checkpoint start/finish times into SQL.
Previous Message Tom Lane 2008-04-03 21:19:19 Re: Configurable Penalty Costs for Levenshtein