pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: What SQL is running against my DB?
Date: Thu, 4 Oct 2007 20:18:05 +0200
Message-ID: <20071004181805.GA26859@KanotixBox> (raw)
In-Reply-To: <fe38hc$8de$1@news.hub.org>
References: <fe38hc$8de$1@news.hub.org>

Tore Lukashaugen <tore@lukashaugen.freeserve.co.uk> schrieb:

> Hello all,
> 
> I have an application running against my postgres 8.2 database (on Windows 
> Vista) for which I do not have access to the source code.
> 
> I would like to know what SQL statements are being executed by the 
> application. Is there a way to turn on logging in the server so that obtain 
> this information?

Yes, of course. You can set in your postgresql.conf:

log_statement = 'all'

to log all statements. Read this file for more details, it is well
documented.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°



view thread (2+ messages)

Message-ID: <20071004181805.GA26859@KanotixBox>
Permalink:  ../20071004181805.GA26859@KanotixBox/
Also on:    postgresql.org/message-id/20071004181805.GA26859@KanotixBox

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: akretschmer@spamfence.net
  Subject: Re: What SQL is running against my DB?
  In-Reply-To: <20071004181805.GA26859@KanotixBox>

* 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