Re: redirecting query statement and output to a marked up file, using psql

Поиск
Список
Период
Сортировка
От Bosco Rama
Тема Re: redirecting query statement and output to a marked up file, using psql
Дата
Msg-id 4D49C35C.2000900@boscorama.com
обсуждение исходный текст
Ответ на redirecting query statement and output to a marked up file, using psql  (Wim Bertels <wim.bertels@khleuven.be>)
Ответы Re: redirecting query statement and output to a marked up file, using psql  (Wim Bertels <wim.bertels@khleuven.be>)
Список pgsql-general
Wim Bertels wrote:
>
> --user2
> SET SESSION AUTHORIZATION user2;
> \pset format latex
> \echo ECHO queries
> \o report/test_user2.tex
> \i structure/test_user2.sql
> "
>
> This doenst seem to work,
> as the ECHO queries output isnt written to the file (test_user2.tex)

Actions are performed as they are encountered so put the \echo *after* the
\o, like this:

   SET SESSION AUTHORIZATION user2;
   \pset format latex
   \o report/test_user2.tex
   \echo ECHO queries
   \i structure/test_user2.sql

HTH,
Bosco.

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Database Design Question
Следующее
От: Yves Weißig
Дата:
Сообщение: effective_io_concurrency