Re: logging problem ... ?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: logging problem ... ?
Date: 2000-05-09 20:51:38
Message-ID: Pine.LNX.4.21.0005091651410.387-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-05-09 20:51:52 Re: You're on SecurityFocus.com for the cleartext passwords.
Previous Message Peter Eisentraut 2000-05-09 20:51:27 Re: CREATE DATABASE WITH OWNER '??';