Re: logging "raise" to file - Mailing list pgsql-general

From Georg H.
Subject Re: logging "raise" to file
Date
Msg-id cb122917-a26e-9c76-b6f3-3c807e96bded@silentrunner.de
Whole thread Raw
In response to logging "raise" to file  (wambacher@posteo.de)
Responses Re: logging "raise" to file  (wambacher@posteo.de)
List 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 by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: logging "raise" to file
Next
From: wambacher@posteo.de
Date:
Subject: Re: logging "raise" to file