pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: george young <gry@ll.mit.edu>
To: pgsql-sql@postgresql.org
Subject: backend cpu usage? [7.2]
Date: Fri, 1 Aug 2003 16:23:01 -0400
Message-ID: <20030801162301.4ae86d31.gry@ll.mit.edu> (raw)

[postgresql-7.2, x86 linux]
How can I get cpu usage info in 7.2 about the backend process of my db
connection?  I tried looking at the pg_stat_get_backend_pid function
but it requires a backend_id that I don't know how to get.

If I can get the backend pid I can fork a 'ps' command from my app,
though it would be nicer to get it directly through sql.

-- George Young

-- 
 I cannot think why the whole bed of the ocean is
 not one solid mass of oysters, so prolific they seem. Ah,
 I am wandering! Strange how the brain controls the brain!
	-- Sherlock Holmes in "The Dying Detective"



view thread (2+ messages)  latest in thread

Message-ID: <20030801162301.4ae86d31.gry@ll.mit.edu>
Permalink:  ../20030801162301.4ae86d31.gry@ll.mit.edu/
Also on:    postgresql.org/message-id/20030801162301.4ae86d31.gry@ll.mit.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gry@ll.mit.edu
  Subject: Re: backend cpu usage? [7.2]
  In-Reply-To: <20030801162301.4ae86d31.gry@ll.mit.edu>

* 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