Re: actual SQL statement

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: actual SQL statement
Date: 2006-02-23 10:12:45
Message-ID: 20060223101245.GF24821@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am 23.02.2006, um 10:58:12 +0100 mailte MG folgendes:
> Hello,
>
> can I find out, what SQL statement the PostgreSQL-server is executing?

select * from pg_stat_activity;

You should enable 'stats_command_string' in postgresql.conf.

Btw.: please, no HTML

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Prestation3.EXPLOITATION 2006-02-23 10:30:46 Disable FK constarints
Previous Message MG 2006-02-23 09:58:12 actual SQL statement