Re: Syslog and pg_options (for RPMs)
| От | Bruce Momjian |
|---|---|
| Тема | Re: Syslog and pg_options (for RPMs) |
| Дата | |
| Msg-id | 200010030343.XAA11316@candle.pha.pa.us обсуждение |
| Ответ на | Syslog and pg_options (for RPMs) (Lamar Owen <lamar.owen@wgcr.org>) |
| Список | pgsql-hackers |
Can someone comment on this?
> Bruce Momjian wrote:
> >
> > Seems this was already done in 7.1, right?
> [thread on puts() and fprintf(stderr and printf instead of tprintf or
> replacement truncated]
>
> There are still scads of fprintf(stderr, "some error message from
> postmaster or backend") lying around, in CURRENT as of this morning at
> 1:00AM EDT. Some are things such as the usage message -- others are
> obviously (IMHO) things that need to be sent to the logs. We're not
> replacing the system fprintf , are we? (my assumption is that we are
> NOT). The usage of puts(), OTOH, has been well nigh eradicated.
>
> Try a find -name '*.[hc]' -print -exec grep printf \{\} \; with cwd=src
> to see.... (of course, that also exposes where we are continuing to use
> sprintf instead of snprintf, for whatever reason....)
>
> Comments?
>
> --
> Lamar Owen
> WGCR Internet Radio
> 1 Peter 4:11
>
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026
В списке pgsql-hackers по дате отправления: