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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: psql \G command -- send query and output using extended format
Дата
Msg-id 200804031706.m33H6nK03082@momjian.us
обсуждение исходный текст
Ответ на Re: psql \G command -- send query and output using extended format  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: psql \G command -- send query and output using extended format  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Martijn van Oosterhout wrote:
-- Start of PGP signed section.
> On Thu, Apr 03, 2008 at 12:07:54PM -0400, Bruce Momjian wrote:
> > > Alternating between formats using "\x" is, at least for me, a bit
> > > cumbersome: usually _after_ I wrote a query I realize "it would
> > > look more readable in expanded format", which is a bit too late.
> > > So I run the query, ctrl+c, \x, rerun the query... and forget to
> > > turn expanded mode off afterwards.
> > 
> > It seems more helpful if there were \x option to use extended format
> > only when the output is too wide.  TODO already has:
> 
> 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.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: modules
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Small TRUNCATE glitch