| От | Daniel Verite |
|---|---|
| Тема | Re: psql > split > queries & output |
| Дата | |
| Msg-id | c83deef9-4cb9-4f98-bed4-093daa20f4cb@manitou-mail.org обсуждение |
| Ответ на | psql > split > queries & output (Wim Bertels <wim.bertels@ucll.be>) |
| Ответы |
Re: psql > split > queries & output
|
| Список | pgsql-general |
Wim Bertels wrote: > * one pipe (or..) to a file which only contains the statements > (queries) history (and not the output) > * another pipe (or..) to a file which only contains the output (with or > without the statements) history Consider that script: $ cat f.sql \set ECHO queries \o output.txt select 1; select 2; select 3; If it's run with $ psql -f f.sql >queries.txt then it produces the queries in queries.txt and the output in output.txt Best regards, -- Daniel Vérité PostgreSQL-powered mailer: https://www.manitou-mail.org Twitter: @DanielVerite
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера