Received: from morris.staff.plugged.com.au (stallman.pisoftware.com [203.20.51.50]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eA30A5l59098 for ; Thu, 2 Nov 2000 19:10:06 -0500 (EST) (envelope-from ben.warren@pisoftware.com) Received: from pisoftware.com (ben@lovelace.staff.plugged.com.au [192.168.20.61]) by morris.staff.plugged.com.au (8.9.3/8.9.3) with ESMTP id KAA03929 for ; Fri, 3 Nov 2000 10:09:35 +1000 Message-ID: <3A02023F.3734EEE1@pisoftware.com> Date: Fri, 03 Nov 2000 10:09:35 +1000 From: Ben Warren X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Getting postgres to echo queries. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200011/9 X-Sequence-Number: 18 Hi, I'm trying to log all SQL queries sent to postgres v6.5. I have set PGECHO=yes in the postmaster.init file but nothing about the SQL queries appears in the log. I know that the config file is being read and that I am looking at the right log file because changes to the init file PGDEBUG level do cause different log output. An echo of the startup call revealed the following: su postgres -c /usr/lib/postgresql/bin/postmaster -b /usr/lib/postgresql/bin/postgres -B 128 -D /var/lib/postgres/data -d 2 -i -o '-E' > /var/log/postgres.log 2>&1 The -E option for echo queries seems to be passed through correctly. Any help with this matter will be very much appreciated. Regards, Ben -- ================================================================ | Ben Warren | Plugged In Software | ================================================================ http://www.pisoftware.com | Ph: +61 (07) 3876 2188 mailto:ben.warren@pisoftware.com | Fax: +61 (07) 3876 4899