From: Michael B. Babakov <M.Babakov@sochi.net.ru>
To: Ross J. Reedstrom <reedstrm@rice.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: users work now with PostgreSQL
Date: Tue, 12 Dec 2000 22:25:43 +0300 (MSK)
Message-ID: <XFMail.001212222543.M.Babakov@sochi.net.ru> (raw)
In-Reply-To: <20001212105026.B25559@rice.edu>
On 12-Dec-00 Ross J. Reedstrom wrote:
> It's encoded in the process environment, so the 'ps' command will
> give you what you want:
Yes! For version < 7.0.2 it's right. After 7.0.2 postgresql don't write user
in 'ps' command.
I'm use FreeBSD 4.2.
I'm make:
1. In src/include/config.h:
#define ELOG_TIMESTAMPS
...
gmake
2. In data/pg_options:
verbose=1
hostlookup
3. Running postgresql as:
#!/usr/local/bin/bash
export LC_COLLATE=ru_SU.KOI8-R
export LC_CTYPE=ru_SU.KOI8-R
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -o \
"-o -F -B 256 -i" start \
2>&1 | /home/mike/program/perl/pg_user/filter.pl > /usr/local/pgsql/errlog &
4. /home/mike/program/perl/pg_user/filter.pl:
#!/usr/bin/perl
$| = 1;
while(<STDIN>) {
print $_ if /started/ || / exit/;
};
'grep' command buffered output (?) and posting filtered message more laters.
Some more ideas?
P.S. Sorry, for my bad english. :(
Good luck,
Michael
---
e-mail: M.Babakov@sochi.net.ru
http://sochi.net.ru/~mike
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: M.Babakov@sochi.net.ru, reedstrm@rice.edu
Subject: Re: users work now with PostgreSQL
In-Reply-To: <XFMail.001212222543.M.Babakov@sochi.net.ru>
References: <20001212105026.B25559@rice.edu> <XFMail.001212222543.M.Babakov@sochi.net.ru>
* 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