Skip site navigation (1) Skip section navigation (2)

pgsql: Try to make silent_mode behave somewhat reasonably.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Try to make silent_mode behave somewhat reasonably.
Date: 2009-08-24 20:08:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Try to make silent_mode behave somewhat reasonably.

Instead of sending stdout/stderr to /dev/null after forking away from the
terminal, send them to postmaster.log within the data directory.  Since
this opens the door to indefinite logfile bloat, recommend even more
strongly that log output be redirected when using silent_mode.

Move the postmaster's initial calls of load_hba() and load_ident() down
to after we have started the log collector, if we are going to.  This
is so that errors reported by them will appear in the "usual" place.

Reclassify silent_mode as a LOGGING_WHERE, not LOGGING_WHEN, parameter,
since it's got absolutely nothing to do with the latter category.

In passing, fix some obsolete references to -S ... this option hasn't
had that switch letter for a long time.

Back-patch to 8.4, since as of 8.4 load_hba() and load_ident() are more
picky (and thus more likely to fail) than they used to be.  This entire
change was driven by a complaint about those errors disappearing into
the bit bucket.


Modified Files:
        config.sgml (r1.220 -> r1.220.2.1)
        postmaster.c (r1.583.2.5 -> r1.583.2.6)
        guc.c (r1.505 -> r1.505.2.1)
        postgresql.conf.sample (r1.260 -> r1.260.2.1)

pgsql-committers by date

Next:From: User GsmetDate: 2009-08-24 20:13:37
Subject: pgfouine - pgfouine: bumped version to a dev version
Previous:From: Tom LaneDate: 2009-08-24 20:08:32
Subject: pgsql: Try to make silent_mode behave somewhat reasonably.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group