pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: How to list what queries are running in postgres?
Date: Wed, 30 Jun 2004 10:43:51 +0200
Message-ID: <40E27D47.1000908@bigfoot.com> (raw)
In-Reply-To: <3246.1088566642@sss.pgh.pa.us>
References: <20040623213446.GA31224@pmg.xs4all.nl>
	<40E1DCCD.5060907@bigfoot.com>
	<3246.1088566642@sss.pgh.pa.us>

Tom Lane wrote:

> Gaetano Mendola <mendola@bigfoot.com> writes:
> 
>>P.A.M. van Dam wrote:
>>
>>>I'm looking for a command or method to find out what queries are
>>>currently being serviced by the database. 
> 
> 
>>select * from pg_stat_activity;
> 
> 
> ... having first remembered to turn on stats_command_string; and
> thou shalt also be superuser.
> 
> [ anybody else remember Monty Python's scriptures concerning the
> Holy Hand Grenade? ]

Do you mean this ?

Then did he raise on high the Holy Hand Grenade of Antioch, saying,
"Bless this, O Lord, that with it thou mayst blow thine enemies to
tiny bits, in thy mercy." And the people did rejoice and did feast
upon the lambs and toads and tree-sloths and fruit-bats and orangutans
and breakfast cereals ... Now did the Lord say, "First thou pullest
the Holy Pin. Then thou must count to three. Three shall be the number
of the counting and the number of the counting shall be three. Four
shalt thou not count, neither shalt thou count two, excepting that
thou then proceedeth to three. Five is right out. Once the number
three, being the number of the counting, be reached, then lobbest
thou the Holy Hand Grenade in the direction of thine foe, who, being
naughty in my sight, shall snuff it."


:-)


Regards
Gaetano Mendola





view thread (5+ messages)  latest in thread

Message-ID: <40E27D47.1000908@bigfoot.com>
Permalink:  ../40E27D47.1000908@bigfoot.com/
Also on:    postgresql.org/message-id/40E27D47.1000908@bigfoot.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com, tgl@sss.pgh.pa.us
  Subject: Re: How to list what queries are running in postgres?
  In-Reply-To: <40E27D47.1000908@bigfoot.com>
  References: <20040623213446.GA31224@pmg.xs4all.nl> <40E1DCCD.5060907@bigfoot.com> <3246.1088566642@sss.pgh.pa.us> <40E27D47.1000908@bigfoot.com>

* 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