Re: Open connections details

From: hubert depesz lubaczewski <depesz(at)gmail(dot)com>
To: Andrew Watters <andrew(at)gocontent(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Open connections details
Date: 2005-11-09 06:24:31
Message-ID: 9e4684ce0511082224i52cdc6b8te0de74f779dd2968@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 11/8/05, Andrew Watters <andrew(at)gocontent(dot)com> wrote:
>
> I am trying to find details about open connections. I can see that there
> are open connections through Tools | Server Status in pgAdmin III. How
> can I find what the current and/or last SQL statement was that was run
> in those open connections please?
>

select * from pg_stat_activity;
you might have to turn on stats_command_string in postgresql.conf.

depesz

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Forensic Labs. 2005-11-09 10:14:25 pg_shadow [1] Bus error (core dumped)
Previous Message shenanigans 2005-11-08 22:06:07 Roomity.com v 1.5 is a web 2.01