Dirty workaround to get the results and the errors in the same output file

Поиск
Список
Период
Сортировка
От Alain TESIO
Тема Dirty workaround to get the results and the errors in the same output file
Дата
Msg-id 20000110194819.12443.qmail@web303.mail.yahoo.com
обсуждение исходный текст
Ответы Re: [GENERAL] Dirty workaround to get the results and the errors in the same output file  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
Hello,

Maybe you've experienced this problem too : when you have a huge
script with an error somewhere, it's a pain to find out what
line produced the error as you can't have the output of psql
with the queries and the error message in the same file.
I've tried psql ... 1>out 2>out, you the source queries at the
top of the file, and the messages from psql at the bottom.
Here's the trick which worked for me : replace stdout with
stderr in psql.c, and compile again psql. When you got an error,
the message is now just after the offending query.

Alain

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

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

Предыдущее
От: "Dan Boutin"
Дата:
Сообщение: NTWS Demo?
Следующее
От: Guillaume Rousse
Дата:
Сообщение: SQL 3 and n:m relationships