Search Postgresql Archives

Re: logging "raise" to file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Am 28.07.2019 um 12:32 schrieb wambacher@xxxxxxxxx:

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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux