Re: Syslog Facility Patch

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Syslog Facility Patch
Date: 2000-11-12 21:58:54
Message-ID: 20001112155854.A4855@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Larry Rosenman <ler(at)lerctr(dot)org> [001112 15:41]:
> * Larry Rosenman <ler(at)lerctr(dot)org> [001112 14:02]:
> > OK, I don't like it (it just says "syntax error"), but here is an
> > improved version. I also switched to strcasecmp...
> In looking at this some more, it appears that *SOMETHING* is not
> allowing messages from set_config_option() in
> /src/backend/utils/misc/guc.c out WHEN WE ARE DEALING WITH syslog type
> stuff and we are reading it from the postgresql.conf file. I'm not
> sure how to deal with this.. I set syslog=2 then syslog_facility to
> some invalid value, and all I get is the syntax error message, not the
> "option rejects value" message.
>
> Anyone got any ideas?
>
> Oh, delete the elog() and fprintf() before you commit my patch (in
> check_facility() in guc.c), please.
Oh, more, if I give an invalid value on the command line, we get the
right message out. So, it appears to be a conf file issue.

I'm no (f)lex guru, nor do I totally understand the startup stuff.

I feel the patch (modulo the killing of the elog() and fprintf() is
valuable. I think I am the first to use the string parse_hook, so
this is probably the first time we've had this issue.

Any help would be appreciated.

LER

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2000-11-12 23:05:19 Re: Syslog Facility Patch
Previous Message Larry Rosenman 2000-11-12 21:40:22 Re: Syslog Facility Patch