Re: logging "raise" to file

From: "Georg H(dot)" <georg-h(at)silentrunner(dot)de>
To: wambacher(at)posteo(dot)de, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: logging "raise" to file
Date: 2019-07-28 13:57:15
Message-ID: cb122917-a26e-9c76-b6f3-3c807e96bded@silentrunner.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Am 28.07.2019 um 12:32 schrieb wambacher(at)posteo(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message wambacher 2019-07-28 16:32:04 Re: logging "raise" to file
Previous Message Guillaume Lelarge 2019-07-28 12:14:34 Re: logging "raise" to file