Received: from comm.sochi.net.ru (sochi.net.ru [212.248.80.2]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBCJPPm34083 for ; Tue, 12 Dec 2000 14:25:30 -0500 (EST) (envelope-from M.Babakov@sochi.net.ru) Received: from mb.sochi.net.ru (misoft.tnet.sochi.net [212.248.80.53]) by comm.sochi.net.ru (8.10.2/8.10.2) with ESMTP id eBCJPPJ11072; Tue, 12 Dec 2000 22:25:25 +0300 (MSK) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20001212105026.B25559@rice.edu> Date: Tue, 12 Dec 2000 22:25:43 +0300 (MSK) Reply-To: M.Babakov@sochi.net.ru From: "Michael B. Babakov" To: "Ross J. Reedstrom" Subject: Re: users work now with PostgreSQL Cc: pgsql-admin@postgresql.org X-Archive-Number: 200012/84 X-Sequence-Number: 279 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() { 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