Re: How to list what queries are running in postgres? - Mailing list pgsql-admin

From Gaetano Mendola
Subject Re: How to list what queries are running in postgres?
Date
Msg-id 40E27D47.1000908@bigfoot.com
Whole thread Raw
In response to Re: How to list what queries are running in postgres?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
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



pgsql-admin by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: PITR Error Message assistance
Next
From: Doug Quale
Date:
Subject: Re: grant execute on many functions