Re: syslog by default?

Lists: pgsql-hackers
From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: syslog by default?
Date: 2001-09-11 04:29:58
Message-ID: 20010911132958Y.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

There was a discussion about --enable-syslog by default. What was the
consensus? I think this is a good one.
--
Tatsuo Ishii


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-09-11 05:07:33
Message-ID: 200109110507.f8B57X926860@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> There was a discussion about --enable-syslog by default. What was the
> consensus? I think this is a good one.

Yes, I thought we decided it should be the default too.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026


From: Vince Vielhaber <vev(at)michvhf(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: syslog by default?
Date: 2001-09-11 10:18:43
Message-ID: Pine.BSF.4.30.0109110617500.32796-100000@paprika.michvhf.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, 11 Sep 2001, Bruce Momjian wrote:

> > There was a discussion about --enable-syslog by default. What was the
> > consensus? I think this is a good one.
>
> Yes, I thought we decided it should be the default too.

I know it can have an adverse effect on a mail server, is syslog going
to give us any performance hits?

Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH email: vev(at)michvhf(dot)com http://www.pop4.net
56K Nationwide Dialup from $16.00/mo at Pop4 Networking
Online Campground Directory http://www.camping-usa.com
Online Giftshop Superstore http://www.cloudninegifts.com
==========================================================================


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: syslog by default?
Date: 2001-09-11 13:10:42
Message-ID: Pine.LNX.4.30.0109111455400.680-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tatsuo Ishii writes:

> There was a discussion about --enable-syslog by default. What was the
> consensus? I think this is a good one.

It would be a good one if we make the blind assumption that syslog()
exists on all platforms. That is possible, but not guaranteed. (BeOS,
QNX, Cygwin?)

The alternative suggestion to turn it off if syslog() is not found makes
me wary. These schemes have invariably lead to problems in the past.
Recall libpq++ being missed because of false test results, readline
support mysteriously disappearing and nobody noticing until Mandrake had
shipped their CDs. There are possible scenarios where syslog support
could be missed by configure, such as when you need some compat or bsd
library.

An alternative scheme I wanted to implement for readline is

--enable-foo => force feature to be used
--disable-foo => force feature not to be used
<nothing> => use feature if available

but I'm afraid that this would create more confusion than it's worth
because a prudent user would specify --enable-foo anyway.

I'd rather type a few more things and get predictable behavior from
configure rather than relying on it to pick the features for me.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter


From: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-09-11 22:14:54
Message-ID: 20010911221456.69C462AB44@bugs.unl.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mar 11 Sep 2001 02:07, Bruce Momjian wrote:
> > There was a discussion about --enable-syslog by default. What was the
> > consensus? I think this is a good one.
>
> Yes, I thought we decided it should be the default too.

There was a discusion about log rotation last week, so, where are we going?
Pipe the output of postmaster to a log rotator like apaches logrotate, or are
we going to use syslog and have the syslog log rotator do the rotation?

Just a dought I had.

Saludos... :-)

--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------


From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-09-11 23:11:52
Message-ID: 200109112311.TAA13658@www.wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tuesday 11 September 2001 06:14 pm, Martín Marqués wrote:
> There was a discusion about log rotation last week, so, where are we going?
> Pipe the output of postmaster to a log rotator like apaches logrotate, or
> are we going to use syslog and have the syslog log rotator do the rotation?

Both have their place.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11


From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: peter_e(at)gmx(dot)net
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-09-12 00:59:50
Message-ID: 20010912095950W.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> Tatsuo Ishii writes:
>
> > There was a discussion about --enable-syslog by default. What was the
> > consensus? I think this is a good one.
>
> It would be a good one if we make the blind assumption that syslog()
> exists on all platforms. That is possible, but not guaranteed. (BeOS,
> QNX, Cygwin?)
>
> The alternative suggestion to turn it off if syslog() is not found makes
> me wary. These schemes have invariably lead to problems in the past.
> Recall libpq++ being missed because of false test results, readline
> support mysteriously disappearing and nobody noticing until Mandrake had
> shipped their CDs. There are possible scenarios where syslog support
> could be missed by configure, such as when you need some compat or bsd
> library.

Why are you so worrying about finding syslog() in configure? We have
already done lots of function testings. Is there anything special with
syslog()?
--
Tatsuo Ishii


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: syslog by default?
Date: 2001-09-12 12:07:40
Message-ID: Pine.LNX.4.30.0109121402310.694-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Tatsuo Ishii writes:

> Why are you so worrying about finding syslog() in configure? We have
> already done lots of function testings. Is there anything special with
> syslog()?

All the other functions we test for come with a replacement plan. Either
we choose between several similar alternatives (atexit/on_exit), or we
link in our own function.o file. But we don't shut off a whole piece of
functionality when one goes missing (except in the cases I mentioned).

I'm probably being paranoid. But you did ask what became of the idea, and
that's what did, as far as I'm concerned...

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-09-12 14:20:38
Message-ID: 200109121420.f8CEKcg06696@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> Tatsuo Ishii writes:
>
> > Why are you so worrying about finding syslog() in configure? We have
> > already done lots of function testings. Is there anything special with
> > syslog()?
>
> All the other functions we test for come with a replacement plan. Either
> we choose between several similar alternatives (atexit/on_exit), or we
> link in our own function.o file. But we don't shut off a whole piece of
> functionality when one goes missing (except in the cases I mentioned).
>
> I'm probably being paranoid. But you did ask what became of the idea, and
> that's what did, as far as I'm concerned...

OK, that makes sense. My only question is how many platforms _don't_
have syslog. If it is only NT and QNX, I think we can live with using
it by default if it exists.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026


From: "Joel W(dot) Reed" <jreed(at)support(dot)ddiworld(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-09-14 13:25:27
Message-ID: 20010914092527.A23980@support.ddiworld.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sep 12, pgman(at)candle(dot)pha(dot)pa(dot)us contorted a few electrons to say...
Bruce> OK, that makes sense. My only question is how many platforms _don't_
Bruce> have syslog. If it is only NT and QNX, I think we can live with using
Bruce> it by default if it exists.

perhaps you could take some code from

http://freshmeat.net/projects/cpslapi/

which implements a syslog-api that writes to NT's eventlog.

i'd be glad to change the license if it is useful.

jr

--
------------------------------------------------------------------------
Joel W. Reed 412-257-3881
--------------All the simple programs have been written.----------------


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: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-09-14 22:05:05
Message-ID: 13397.1000505105@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> OK, that makes sense. My only question is how many platforms _don't_
> have syslog. If it is only NT and QNX, I think we can live with using
> it by default if it exists.

There seems to be a certain amount of confusion here. The proposal at
hand was to make configure set up to *compile* the syslog support
whenever possible. Not to *use* syslog by default. Unless we change
the default postgresql.conf --- which I would be against --- we will
still log to stderr by default.

Given that, I'm not sure that Peter's argument about losing
functionality is right; the analogy to readline support isn't exact.
Perhaps what we should do is (a) always build syslog support if
possible, and (b) at runtime, complain if syslog logging is requested
but we don't have it available.

regards, tom lane


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-10-11 16:39:01
Message-ID: 200110111639.f9BGd1618781@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > OK, that makes sense. My only question is how many platforms _don't_
> > have syslog. If it is only NT and QNX, I think we can live with using
> > it by default if it exists.
>
> There seems to be a certain amount of confusion here. The proposal at
> hand was to make configure set up to *compile* the syslog support
> whenever possible. Not to *use* syslog by default. Unless we change
> the default postgresql.conf --- which I would be against --- we will
> still log to stderr by default.
>
> Given that, I'm not sure that Peter's argument about losing
> functionality is right; the analogy to readline support isn't exact.
> Perhaps what we should do is (a) always build syslog support if
> possible, and (b) at runtime, complain if syslog logging is requested
> but we don't have it available.

Did we decide to compile in syslog support by default? I thought so.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: syslog by default?
Date: 2001-11-05 16:01:51
Message-ID: 200111051601.fA5G1pj21656@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg메이저 토토 사이트SQL

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > OK, that makes sense. My only question is how many platforms _don't_
> > have syslog. If it is only NT and QNX, I think we can live with using
> > it by default if it exists.
>
> There seems to be a certain amount of confusion here. The proposal at
> hand was to make configure set up to *compile* the syslog support
> whenever possible. Not to *use* syslog by default. Unless we change
> the default postgresql.conf --- which I would be against --- we will
> still log to stderr by default.
>
> Given that, I'm not sure that Peter's argument about losing
> functionality is right; the analogy to readline support isn't exact.
> Perhaps what we should do is (a) always build syslog support if
> possible, and (b) at runtime, complain if syslog logging is requested
> but we don't have it available.

Is this idea dead for 7.2? Should I add it to the TODO list?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026