dbTalk Databases Forums  

cost logging

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss cost logging in the comp.databases.postgresql.general forum.



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

Default cost logging - 10-13-2004 , 02:59 AM






Hello.
For a project we are planning cost management. Each "user" should pay
for the cost he/she generates on the postgresql server.
The idea is that a query should be charged by the ammount of CPU time
used and/or the ammount of data read from disk.
The acctual time (in milliseconds) it took to execute will not be a good
way of getting the cost since the same query might take more or less
time depending on current load and depeding on the state of a table.

Question is, can in some "good" way log or save (possibly using
triggers) the CPU cost for each query that was run?
if there is such cost management?
please point me to the chapter in the manual if i simply missed it.

postgresql 7.4.5 is used, platform is linux.

/stig

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.