From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Larry Rosenman <ler(at)lerctr(dot)org> |
Cc: | PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Subject: | Re: Syslog Facility Patch |
Date: | 2000-11-16 05:46:16 |
Message-ID: | 200011160546.AAA28769@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Applied.
> * Peter Eisentraut <peter_e(at)gmx(dot)net> [001113 23:52]:
> > Okay, but you can't make these options PGC_SIGHUP unless you make sure to
> > close and re-open the syslog channel whenever these options
> > change. Probably ought to be PGC_POSTMASTER.
> Here is a patch to change to PGC_POSTMASTER...
>
>
> Index: guc.c
> ===================================================================
> RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/guc.c,v
> retrieving revision 1.19
> diff -c -r1.19 guc.c
> *** guc.c 2000/11/14 01:15:02 1.19
> --- guc.c 2000/11/14 13:11:33
> ***************
> *** 309,317 ****
> {"unix_socket_group", PGC_POSTMASTER, &Unix_socket_group,
> "", NULL},
> #ifdef ENABLE_SYSLOG
> ! {"syslog_facility", PGC_SIGHUP, &Syslog_facility,
> "LOCAL0", check_facility},
> ! {"syslog_progid", PGC_SIGHUP, &Syslog_progid,
> "postgres", NULL},
> #endif
>
> --- 309,317 ----
> {"unix_socket_group", PGC_POSTMASTER, &Unix_socket_group,
> "", NULL},
> #ifdef ENABLE_SYSLOG
> ! {"syslog_facility", PGC_POSTMASTER, &Syslog_facility,
> "LOCAL0", check_facility},
> ! {"syslog_progid", PGC_POSTMASTER, &Syslog_progid,
> "postgres", NULL},
> #endif
>
> --
> 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
>
--
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 | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-11-16 05:49:05 | Re: Syslog Facility Patch |
Previous Message | Bruce Momjian | 2000-11-16 05:31:03 | Re: RE: [COMMITTERS] pgsql/src/backend/access/transam ( xact.c xlog.c) |