Bug 114450 - Hook for log files
Summary: Hook for log files
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rh-postgresql (Show other bugs)
(Show other bugs)
Version: 3.0
Hardware: All Linux
Target Milestone: ---
Assignee: Tom Lane
QA Contact:
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2004-01-28 11:44 UTC by Mario Lorenz
Modified: 2013-07-03 03:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-21 19:02:41 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Mario Lorenz 2004-01-28 11:44:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2)

Description of problem:
Postgres has features to log debug output, queries etc. to
stdout/stderr. The rhdb start script redirects this to /dev/null.

It should be possible to configure this to log into a file,
or even better into a program, so that this output is lost. 

Currently this cannot be done safely, because /etc/rc.d/init.d/rhdb
is not marked to be a configuration file, so changes would be lost
on an update.

Version-Release number of selected component (if applicable):
rh-postgresql-server 7.3.4-9

How reproducible:

Steps to Reproduce:
1. look into the rhdb service start file where postmaster is started
2. notice the >/dev/null 2&>1

Actual Results:  output logged to the bit bucket

Expected Results:  A possibility, either by setting a variable in
sysconfig/rhdb ,
to log to a file or a program, alternatively setting the start script
to be a config file so that changes can be made safely.

Additional info:

Inhouse, we pipe the log to /usr/sbin/rotatelogs from the httpd package
and use tmpwatch to clean out older logfiles. This would however be
a bad default configuration because it adds dependencies to httpd.
A  sysconfig configuration variable, which can default to
>/dev/null would have zero impact on current system, but  make
advanced logging possible.

Comment 1 Suzanne Hillman 2004-02-02 18:46:49 UTC
Internal RFE bug #114775 added. Will be considered for future releases.

Comment 2 Suzanne Hillman 2004-04-21 19:02:41 UTC
Postgres server not supported in RHEL3.

Note You need to log in before you can comment on or make changes to this bug.