psql output result

Поиск
Список
Период
Сортировка
От Tiffany Thang
Тема psql output result
Дата
Msg-id CAB_W-NPNn8FR5GMbgmWmT=Ekf2um00ZZDTmR1KzeXuRCtnNeWg@mail.gmail.com
обсуждение исходный текст
Ответы Re: psql output result
Re: psql output result
Список pgsql-general
Hi,
I have a SQL script that does some DDLs, inserts and counts.

The command I ran is
psql dbname -c "\i crscript.sql" > output.txt

In output.txt, I got something like
INSERT 0 1
INSERT 0 1
CREATE TABLE
INSERT 0 2
 count
-------
     9
(1 row)


Is there a way to output the SQLs and DDLs so that I could easily identify what statements were executed?

Thanks.
 

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

Предыдущее
От: Mike Rylander
Дата:
Сообщение: Change ON UPDATE behavior of fkey
Следующее
От: Geoff Winkless
Дата:
Сообщение: Re: psql output result