Re: logging "raise" to file

Поиск
Список
Период
Сортировка
От Georg H.
Тема Re: logging "raise" to file
Дата
Msg-id cb122917-a26e-9c76-b6f3-3c807e96bded@silentrunner.de
обсуждение исходный текст
Ответ на logging "raise" to file  (wambacher@posteo.de)
Ответы Re: logging "raise" to file  (wambacher@posteo.de)
Список pgsql-general

Hi,

Am 28.07.2019 um 12:32 schrieb wambacher@posteo.de:

Hi,

is there a way to log output from "raise ..." to a local file? \o file does not work (for me).

regards
walter


the red part writes your "raise notice" to your log

psql (+your connection string) -f /path/to/file.sql > /path/to/log/xxx.log 2>&1

see

https://dba.stackexchange.com/questions/107199/how-to-log-custom-messages-from-inside-a-postgresql-transaction

regards

Georg

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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: logging "raise" to file
Следующее
От: wambacher@posteo.de
Дата:
Сообщение: Re: logging "raise" to file