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 22:21:57
Message-ID: 25020.1207261317@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:
> Tom Lane escribi:
>> A bigger problem is that it doesn't play nicely at all with multi-line
>> queries.

> Hmm, why wouldn't it? I assume it would only be recognized if the query
> buffer is empty.

Huh? The proposed syntax was

\x query...

What do you do when you'd like the query to extend over multiple lines?
Backslash commands can't cross lines.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-04-03 22:23:39 Re: Small TRUNCATE glitch
Previous Message Alvaro Herrera 2008-04-03 22:13:53 Re: Small TRUNCATE glitch

Browse pgsql-patches by date

  From Date Subject
Next Message Joshua D. Drake 2008-04-03 22:29:48 Re: Expose checkpoint start/finish times into SQL.
Previous Message Heikki Linnakangas 2008-04-03 22:21:49 Re: Expose checkpoint start/finish times into SQL.