Re: Redirect RAISE NOTICE and errors to separate log file

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Redirect RAISE NOTICE and errors to separate log file
Дата
Msg-id CAKFQuwYrx9dT_MJYUgOD20ELHE_U18xZwkkFbtzBiSW9ESUNng@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Redirect RAISE NOTICE and errors to separate log file  (Nikhil Ingale <niks.bgm@gmail.com>)
Ответы Re: Redirect RAISE NOTICE and errors to separate log file
Список pgsql-admin
On Fri, Feb 17, 2023 at 9:52 AM Nikhil Ingale <niks.bgm@gmail.com> wrote:
I need the non query output in the user defined log file.
How can I achieve that?

Learn shell scripting.

At its simplest, have the user replace "/dev/null" in my example with whatever path they want.

psql doesn't expose specifying a non-query output channel so you are forced to deal with this in a higher/wrapper layer where you can manipulate stderr.

David J.


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

Предыдущее
От: Nikhil Ingale
Дата:
Сообщение: Re: Redirect RAISE NOTICE and errors to separate log file
Следующее
От: pradeep pandey
Дата:
Сообщение: Re: EOL of Pglogical replication support