pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedlogging "raise" to file
4+ messages / 3 participants
[nested] [flat]
* logging "raise" to file
@ 2019-07-28 10:32 wambacher@posteo.de
0 siblings, 2 replies; 4+ messages in thread
From: wambacher@posteo.de @ 2019-07-28 10:32 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi,
is there a way to log output from "raise ..." to a local file? \o file
does not work (for me).
regards
walter
--
My projects:
Admin Boundaries of the World <https://wambachers-osm.website/boundaries;
Missing Boundaries
<https://wambachers-osm.website/index.php/projekte/internationale-administrative-grenzen/missing-boun...;
Emergency Map <https://wambachers-osm.website/emergency;
Postal Code Map (Germany only) <https://wambachers-osm.website/plz;
Fools (QA for zipcodes in Germany) <https://wambachers-osm.website/fools;
Postcode Boundaries of Germany <https://wambachers-osm.website/pcoundaries;
OSM Software Watchlist
<https://wambachers-osm.website/index.php/osm-software-watchlist;
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: logging "raise" to file
@ 2019-07-28 12:14 Guillaume Lelarge <guillaume@lelarge.info>
parent: wambacher@posteo.de
1 sibling, 0 replies; 4+ messages in thread
From: Guillaume Lelarge @ 2019-07-28 12:14 UTC (permalink / raw)
To: wambacher@posteo.de; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Hi,
Le dim. 28 juil. 2019 à 12:32, <wambacher@posteo.de> a écrit :
> Hi,
>
> is there a way to log output from "raise ..." to a local file? \o file
> does not work (for me).
>
No, RAISE messages can only go to log files. You would need to call a
function that could write to a file (though without calling RAISE).
--
Guillaume.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: logging "raise" to file
@ 2019-07-28 13:57 Georg H. <georg-h@silentrunner.de>
parent: wambacher@posteo.de
1 sibling, 1 reply; 4+ messages in thread
From: Georg H. @ 2019-07-28 13:57 UTC (permalink / raw)
To: wambacher@posteo.de; pgsql-general@lists.postgresql.org
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-t...
regards
Georg
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: logging "raise" to file
@ 2019-07-28 16:32 wambacher@posteo.de
parent: Georg H. <georg-h@silentrunner.de>
0 siblings, 0 replies; 4+ messages in thread
From: wambacher@posteo.de @ 2019-07-28 16:32 UTC (permalink / raw)
To: Georg H. <georg-h@silentrunner.de>; pgsql-general@lists.postgresql.org
Thank Georg,
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*
>
> --
My projects:
Admin Boundaries of the World <https://wambachers-osm.website/boundaries;
Missing Boundaries
<https://wambachers-osm.website/index.php/projekte/internationale-administrative-grenzen/missing-boun...;
Emergency Map <https://wambachers-osm.website/emergency;
Postal Code Map (Germany only) <https://wambachers-osm.website/plz;
Fools (QA for zipcodes in Germany) <https://wambachers-osm.website/fools;
Postcode Boundaries of Germany <https://wambachers-osm.website/pcoundaries;
OSM Software Watchlist
<https://wambachers-osm.website/index.php/osm-software-watchlist;
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-07-28 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-07-28 10:32 logging "raise" to file wambacher@posteo.de
2019-07-28 12:14 ` Guillaume Lelarge <guillaume@lelarge.info>
2019-07-28 13:57 ` Georg H. <georg-h@silentrunner.de>
2019-07-28 16:32 ` wambacher@posteo.de
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox