Suggestions

Started by Michael Richardsover 27 years ago6 messages
#1Michael Richards
miker@scifair.acadiau.ca

Hi.
I have a suggestion. I would be interested in implementing it if ppl think
it is a good idea.

Why not have a default location where postgres writes its log files. The
current way of doing it seems to be a little klunky.
I have an either/or suggested fix.
a) add a switch to specify where the info and the errors files go,
/var/log/postgres/info and maybe /var/log/postgres/errors

b) write all the stuff to syslog

I like b better because it would allow remote logging. One could then use
the features of syslog to dump the stuff they want to know about to an
approprate log file. I believe this would also be more effective at making
sure messages get sent when the backend crashes. I have seen a few places
where the messages don't seem to get there because of buffering...

-Mike

#2The Hermit Hacker
scrappy@hub.org
In reply to: Michael Richards (#1)
Re: [HACKERS] Suggestions

On Sun, 3 May 1998, Michael Richards wrote:

Hi.
I have a suggestion. I would be interested in implementing it if ppl think
it is a good idea.

Why not have a default location where postgres writes its log files. The
current way of doing it seems to be a little klunky.
I have an either/or suggested fix.
a) add a switch to specify where the info and the errors files go,
/var/log/postgres/info and maybe /var/log/postgres/errors

b) write all the stuff to syslog

b) is the preferred way of doing it...it should just be a matter
of adding it to backend/utils/elog.c ...

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org

#3Noname
dg@illustra.com
In reply to: The Hermit Hacker (#2)
Re: [HACKERS] Suggestions

On Sun, 3 May 1998, Michael Richards wrote:

Hi.
I have a suggestion. I would be interested in implementing it if ppl think
it is a good idea.

Why not have a default location where postgres writes its log files. The
current way of doing it seems to be a little klunky.
I have an either/or suggested fix.
a) add a switch to specify where the info and the errors files go,
/var/log/postgres/info and maybe /var/log/postgres/errors

b) write all the stuff to syslog

b) is the preferred way of doing it...it should just be a matter
of adding it to backend/utils/elog.c ...

One problem might be that postgres can write _a_ _lot_ of messages to
the log and I would not want to fill my /var/log partition with them as
this would interfere with other logging.

-dg

David Gould dg@illustra.com 510.628.3783 or 510.305.9468
Informix Software (No, really) 300 Lakeside Drive Oakland, CA 94612
"(Windows NT) version 5.0 will build on a proven system architecture
and incorporate tens of thousands of bug fixes from version 4.0."
-- <http://www.microsoft.com/y2k.asp?A=7&amp;B=5&gt;

#4The Hermit Hacker
scrappy@hub.org
In reply to: Noname (#3)
Re: [HACKERS] Suggestions

On Mon, 4 May 1998, David Gould wrote:

On Sun, 3 May 1998, Michael Richards wrote:

Hi.
I have a suggestion. I would be interested in implementing it if ppl think
it is a good idea.

Why not have a default location where postgres writes its log files. The
current way of doing it seems to be a little klunky.
I have an either/or suggested fix.
a) add a switch to specify where the info and the errors files go,
/var/log/postgres/info and maybe /var/log/postgres/errors

b) write all the stuff to syslog

b) is the preferred way of doing it...it should just be a matter
of adding it to backend/utils/elog.c ...

One problem might be that postgres can write _a_ _lot_ of messages to
the log and I would not want to fill my /var/log partition with them as
this would interfere with other logging.

Use syslog.conf to redirect to a different file on a different
partition...benefit to using syslog is that you can rotate the log files
wihtout having to restart the postmaster ...

#5Andrew Martin
martin@biochemistry.ucl.ac.uk
In reply to: The Hermit Hacker (#4)
Re: [HACKERS] Suggestions

Hi.
I have a suggestion. I would be interested in implementing it if ppl think
it is a good idea.

Why not have a default location where postgres writes its log files. The
current way of doing it seems to be a little klunky.
I have an either/or suggested fix.
a) add a switch to specify where the info and the errors files go,
/var/log/postgres/info and maybe /var/log/postgres/errors

b) write all the stuff to syslog

Only if this is all optional (through runtime switches or whatever) so we
can make sure it doesn't need root intervention to get postgresql installed.

Andrew

----------------------------------------------------------------------------
Dr. Andrew C.R. Martin University College London
EMAIL: (Work) martin@biochem.ucl.ac.uk (Home) andrew@stagleys.demon.co.uk
URL: http://www.biochem.ucl.ac.uk/~martin
Tel: (Work) +44(0)171 419 3890 (Home) +44(0)1372 275775

#6The Hermit Hacker
scrappy@hub.org
In reply to: Andrew Martin (#5)
Re: [HACKERS] Suggestions

On Tue, 5 May 1998, Andrew Martin wrote:

Hi.
I have a suggestion. I would be interested in implementing it if ppl think
it is a good idea.

Why not have a default location where postgres writes its log files. The
current way of doing it seems to be a little klunky.
I have an either/or suggested fix.
a) add a switch to specify where the info and the errors files go,
/var/log/postgres/info and maybe /var/log/postgres/errors

b) write all the stuff to syslog

Only if this is all optional (through runtime switches or whatever) so we
can make sure it doesn't need root intervention to get postgresql installed.

using syslogd doesn't require root intervention...just have it
default to daemon.notice, which will go to the 'default' syslog files, and
let it be changeable via command line switched for 'level' and
'facility'...

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org