pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ben Warren <ben.warren@pisoftware.com>
To: pgsql-admin@postgresql.org
Subject: Getting postgres to echo queries.
Date: Fri, 03 Nov 2000 10:09:35 +1000
Message-ID: <3A02023F.3734EEE1@pisoftware.com> (raw)

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



Message-ID: <3A02023F.3734EEE1@pisoftware.com>
Permalink:  ../3A02023F.3734EEE1@pisoftware.com/
Also on:    postgresql.org/message-id/3A02023F.3734EEE1@pisoftware.com

 · 

reply

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: ben.warren@pisoftware.com
  Subject: Re: Getting postgres to echo queries.
  In-Reply-To: <3A02023F.3734EEE1@pisoftware.com>
  References: <3A02023F.3734EEE1@pisoftware.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