From: Jerry Sievers <jerry@jerrysievers.com>
To: pgsql-admin@postgresql.org
Subject: Postmaster log perms and line suffix
Date: 26 Apr 2006 12:39:26 -0400
Message-ID: <m3veswmgu9.fsf@prod01.jerrysievers.com> (raw)
Pgadmins, 2 loosly related questions
1. We have need to let developers view the postmaster logs on some of
our environments and wish NOT to give them access to the postgres
Unix acct if possible. It looks though as if log file perms are
determined by the global umask set in postmaster.c and is not
changeable without either changing the umask or adding some chmod
lines to syslogger.c.
Q: Am I missing an easier way to do this? I realize the risks
involved here.
2. We have a fairly elaborate and very useful log file parser/analyzer
running that gathers and reports on long-running-queries, error
messages and other logged data. Splitting the log files into
records is a bit tricky however due to multi-line log records.
Q: Has anyone else wished for a config parm as "log_line_suffix" or
similar that would let us place an arbitrary record seperator string
trailing each log file entry? Prefix can be used for this but seems a
bit non-intuitive.
Comments appreciated.
Thx
--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jerry@jerrysievers.com
Subject: Re: Postmaster log perms and line suffix
In-Reply-To: <m3veswmgu9.fsf@prod01.jerrysievers.com>
References: <m3veswmgu9.fsf@prod01.jerrysievers.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox