pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedhow to view running sessions ?
2+ messages / 2 participants
[nested] [flat]
* how to view running sessions ?
@ 2005-02-18 00:57 Patrick Hsieh(謝洪恩) <pahudnet@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Hsieh(謝洪恩) @ 2005-02-18 00:57 UTC (permalink / raw)
To: pgsql-admin
I've search the list but there's no hint on this question.
Is there any why to see/view the running query sessions in the database?
Something like "SHOW PROCESSLIST" in MySQL.
thx
--
"Unthinkably good things can happen, even late in the game." -- Under
the Tuscan Sun
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: how to view running sessions ?
@ 2005-02-18 01:51 Michael Fuhr <mike@fuhr.org>
parent: Patrick Hsieh(謝洪恩) <pahudnet@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Fuhr @ 2005-02-18 01:51 UTC (permalink / raw)
To: Patrick Hsieh(?????????) <pahudnet@gmail.com>; +Cc: pgsql-admin
On Fri, Feb 18, 2005 at 08:57:00AM +0800, Patrick Hsieh(?????????) wrote:
> Is there any why to see/view the running query sessions in the database?
> Something like "SHOW PROCESSLIST" in MySQL.
SELECT * FROM pg_stat_activity;
If the current_query column says "<command string not enabled>"
then edit postgresql.conf, set "stats_command_string = true" (and
make sure it's uncommented), and restart or reload the backend.
For more information, see the "Monitoring Database Activity" and
"Server Run-time Environment" chapters in the documentation.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-02-18 01:51 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-02-18 00:57 how to view running sessions ? Patrick Hsieh(謝洪恩) <pahudnet@gmail.com>
2005-02-18 01:51 ` Michael Fuhr <mike@fuhr.org>
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