Re: logging problem ... ? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: logging problem ... ?
Date
Msg-id Pine.LNX.4.21.0005091651410.387-100000@localhost.localdomain
Whole thread Raw
In response to Re: logging problem ... ?  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
The Hermit Hacker writes:

> tell me about it ... now, if it were possible to redirect each backend to
> a seperate file, so that I had X files pertaining to what happened through
> that backend, that would be cool ... maybe play with v7.1 on this one :)

You can compile with ELOG_TIMESTAMPS to tag each log message with a pid
(besides the timestamp).

> > Kinda looks like the backend -o switch doesn't redirect as much as
> > I would've thought --- most of the backend's debug output is coming
> > out in the postmaster log not the other file.  Something to look at
> > later.

This might explain it:

peter ~/pgsql/src/backend$ find -name '*.c' | \                          xargs egrep 'fprintf *\(stderr' | wc -l   232


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: CREATE DATABASE WITH OWNER '??';
Next
From: Peter Eisentraut
Date:
Subject: Re: CREATE DATABASE WITH OWNER '??';