From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | han(dot)holl(at)informationslogik(dot)nl, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgres logs to syslog LOCAL0 |
Date: | 2005-10-14 15:06:11 |
Message-ID: | 9922.1129302371@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I don't see any SELECT: entry in there. In fact, SELECT: is coming from
> syslog, not from PostgreSQL. We only generate the stuff after the
> closing ].
The SELECT: is probably coming from syslog_ident. I note the following
comment in the Linux man page for syslog(3):
The parameter ident in the call of openlog() is probably stored as-is.
Thus, if the string it points to is changed, syslog() may start
prepending the changed string, and if the string it points to ceases to
exist, the results are undefined. Most portable is to use a string
constant.
This is troubling since a reload of the config file could well move
things around. We should probably pass strdup(Syslog_ident) to openlog,
not just Syslog_ident.
However, that doesn't explain the change in facility ...
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-10-14 15:13:11 | Re: BUG #1964: Role membership error |
Previous Message | Michael Fuhr | 2005-10-14 14:30:51 | Re: BUG #1956: Plpgsql top-level DECLARE does not share |
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2005-10-14 15:20:41 | Re: On "multi-master" |
Previous Message | Tatsuo Ishii | 2005-10-14 14:54:19 | Re: On "multi-master" |