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

Поиск
Список
Период
Сортировка
От Dawid Kuroczko
Тема psql \G command -- send query and output using extended format
Дата
Msg-id 758d5e7f0804030023j659d72e6nd66a9d6b93b30886@mail.gmail.com
обсуждение исходный текст
Список pgsql-patches
Hello!

Attached is a simple patch which adds a "\G" backslash command, that is
similar "\g" command.  The difference is that "\G" prints results using
extended output format.  After the query the format is reset to the original
value.

In other words command like:
   SELECT * FROM pg_stat_activity\G
is similar to doing:
   \x on
   SELECT * FROM pg_stat_activity\g
   \x on or off -- depending on the original state.

Rationale: switching format using "\x" for duration of single query I find
a bit uncomfortable.  This is similar to "\g file" which is one-shot version
of "\o file" command.

   Regards,
      Dawid

Вложения

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

Предыдущее
От: Volkan YAZICI
Дата:
Сообщение: Re: Configurable Penalty Costs for Levenshtein
Следующее
От: Bernd Helmle
Дата:
Сообщение: Re: psql command aliases support