Re: Can psql show me where my script is broken?

Поиск
Список
Период
Сортировка
От Stuart Cooper
Тема Re: Can psql show me where my script is broken?
Дата
Msg-id 7fc8628a0703081603g4dff4750h4dc02e848bc77d61@mail.gmail.com
обсуждение исходный текст
Ответ на Can psql show me where my script is broken?  ("jws" <jsacksteder@gmail.com>)
Ответы Re: Can psql show me where my script is broken?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> I have an enormous sql script with an incorrect insert line somewhere.
> I can echo the commands to stdout as they are executed, but apparently
> errors go to stderr. How can I determine where the problem is?

from memory, if you invoke it from the shell with psql [connection
options] -f filename.sql
you'll get the line number of filename.sql that has the error.

Good luck,
Stuart.

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

Предыдущее
От: "jws"
Дата:
Сообщение: Can psql show me where my script is broken?
Следующее
От: Jean-Michel Pouré
Дата:
Сообщение: Tsearch2 / Create rule on select