PSQL: "\set ECHO all" doesn't work with "\o"

Поиск
Список
Период
Сортировка
От Alberto Benini
Тема PSQL: "\set ECHO all" doesn't work with "\o"
Дата
Msg-id e0b4495abaa4c9bfeff2e75f6ae60e88@mail.gmail.com
обсуждение исходный текст
Ответы Re: PSQL: "\set ECHO all" doesn't work with "\o"  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-sql

Hi all,

I haven’t understand how to redirect SQL errors on output file.

 

Our goal is to have a psql script with:

 

\set ON_ERROR_STOP true

\set ECHO all

\o log/update.log;

\i update.sql;

 

 

..but in the log file we don’t see any sql error

 

KR,

Alberto

 

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

Предыдущее
От: Shaozhong SHI
Дата:
Сообщение: Re: automatic scan a table, report on data formats in columns
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: PSQL: "\set ECHO all" doesn't work with "\o"