pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedWhat SQL is running against my DB?
2+ messages / 2 participants
[nested] [flat]
* What SQL is running against my DB?
@ 2007-10-04 17:39 Tore Lukashaugen <tore@lukashaugen.freeserve.co.uk>
2007-10-04 18:18 ` Re: What SQL is running against my DB? Andreas Kretschmer <akretschmer@spamfence.net>
0 siblings, 1 reply; 2+ messages in thread
From: Tore Lukashaugen @ 2007-10-04 17:39 UTC (permalink / raw)
To: pgsql-sql
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?
Thanks
Tore
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: What SQL is running against my DB?
2007-10-04 17:39 What SQL is running against my DB? Tore Lukashaugen <tore@lukashaugen.freeserve.co.uk>
@ 2007-10-04 18:18 ` Andreas Kretschmer <akretschmer@spamfence.net>
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Kretschmer @ 2007-10-04 18:18 UTC (permalink / raw)
To: pgsql-sql
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°
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-10-04 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 17:39 What SQL is running against my DB? Tore Lukashaugen <tore@lukashaugen.freeserve.co.uk>
2007-10-04 18:18 ` Andreas Kretschmer <akretschmer@spamfence.net>
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