Re: serverlog function (log_destination file)

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: serverlog function (log_destination file)
Date: 2004-06-07 11:03:15
Message-ID: 40C44B73.7050802@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andreas Pflug wrote:

> Tom Lane wrote:
>
>> Andreas Pflug <pgadmin(at)pse-consulting(dot)de> writes:
>>
>>
>>> For adminstrator's convenience, I'd like to see a function that
>>> returns the serverlog.
>>>
>>
>>
>> What do you mean by "returns the serverlog"? Are you going to magically
>> recover data that has gone to stderr or the syslogd daemon?
>

Hm, what I missed is that pg_ctl's -l parameter converts to a simple
stderr redirection, and it's hardly possible to find out where it's going.
This could be solved by a file log_destination option or a
freopen(...,stderr) from a guc variable.

Regards,
Andreas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2004-06-07 13:20:00 Re: [HACKERS] Slony-I goes BETA (possible bug)
Previous Message Shridhar Daithankar 2004-06-07 10:56:54 Failures with windows port