dbTalk Databases Forums  

PostgreSQL: Queries usage of Resources

comp.databases.postgresql comp.databases.postgresql


Discuss PostgreSQL: Queries usage of Resources in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fuzzydave
 
Posts: n/a

Default PostgreSQL: Queries usage of Resources - 05-03-2007 , 04:15 AM






I was wondering if there is a tool either as part of the Postgres or
avaliable
as a seperate utilitiy that would allow us to monitor how much of the
database
resources are being used up by each particular query while they are
running.
I ask because we run a lot of rather large queries and it would be
useful to
be able tell at a glance which one it eating all the resources.

Many Thanks
David Phillips


Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: PostgreSQL: Queries usage of Resources - 05-03-2007 , 04:45 AM






Fuzzydave <dav.phillips (AT) ntlworld (DOT) com> wrote:
Quote:
I was wondering if there is a tool either as part of the Postgres or
avaliable
as a seperate utilitiy that would allow us to monitor how much of the
database
resources are being used up by each particular query while they are
running.
I ask because we run a lot of rather large queries and it would be
useful to
be able tell at a glance which one it eating all the resources.
I don't know - there's a number of pg_stat_get_*(oid) functions that
belong to the statistics collection, but I don't know anything about
them.

Since every query is executed by a special process, the backend, you can
use OS commands to find out the resource consumption of the query.
Apart from shared memory usage, that is.

Yours,
Laurenz Albe


Reply With Quote
  #3  
Old   
Fuzzydave
 
Posts: n/a

Default Re: PostgreSQL: Queries usage of Resources - 05-03-2007 , 05:02 AM



Quote:
On 3 May, 10:45, Laurenz Albe <inv... (AT) spam (DOT) to.invalid> wrote:
I don't know - there's a number of pg_stat_get_*(oid) functions that
belong to the statistics collection, but I don't know anything about
them.
Since every query is executed by a special process, the backend, you can
use OS commands to find out the resource consumption of the query.
Apart from shared memory usage, that is.
Yours,
Laurenz Albe
thats great thanks I'll go look up the statistics collection adn try
the
OS side thanks for the suggestions

David P



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.