redirecting query statement and output to a marked up file, using psql
В списке pgsql-general по дате отправления:
| От | Wim Bertels |
|---|---|
| Тема | redirecting query statement and output to a marked up file, using psql |
| Дата | |
| Msg-id | 1296657663.2171.9.camel@zwerfkat обсуждение исходный текст |
| Ответы |
Re: redirecting query statement and output to a marked
up file, using psql
|
| Список | pgsql-general |
Hallo, goal: to write the input and query results to different files in 1 script context example: 1 sql script demo.sql " --init messaging \set client_min_messages warning \set log_error_verbosity terse --user1 SET SESSION AUTHORIZATION user1; \pset format html \o report/test_user1.html \i structure/test_user1.sql --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) The only work around i found so far, is using redirection. starting for example > psql -L out.txt # only txt markup or > psql > out.txt But then if have to postprocess the out.txt file, dividing it into several different files, and the format/markup doenst work so nice any more. Suggestions? tnx, Wim
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера