Re: logging all queries in 7.1.3

From: "Thomas F(dot) O'Connell" <tfo(at)monsterlabs(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: logging all queries in 7.1.3
Date: 2002-03-25 17:50:32
Message-ID: 3C9F6368.3040309@monsterlabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

take a look at $PGDATA/postgresql.conf.

there should be a line in there involving the variable debug_print_query.

if you include the line

debug_print_query = true

and restart postmaster, all queries should be reported to whatever
logging facility you are using.

-tfo

Chris Beams wrote:
> I'm using postgres version 7.1.3 and have found very little
> documentation on how to log queries sent to the database. I've found
> the debugging configuration ( -d[1..4] ), but nothing as to how to log
> every select, insert, update, etc.

Browse pgsql-general by date

  From Date Subject
Next Message Michael Adler 2002-03-25 18:09:29 pg_dump-ing tables and their sequences
Previous Message Darren Ferguson 2002-03-25 16:52:11 Re: accessing fully qualified fields in records in PLPGSQL?