Received: from gw.spectrumtelecorp.com (216-064-054-021.inaddr.vitts.com [216.64.54.21]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA10244; Wed, 31 May 2000 14:33:11 -0400 (EDT) (envelope-from mikeo@spectrumtelecorp.com) Received: from spec34 (spec34.spectrumtelecorp.com [192.168.1.67]) by gw.spectrumtelecorp.com (8.9.3/8.8.7) with SMTP id OAA31455; Wed, 31 May 2000 14:36:51 -0400 Message-Id: <3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com> X-Sender: mikeo@pop.spectrumtelecorp.com X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Wed, 31 May 2000 14:41:17 -0400 To: pgsql-sql@postgreSQL.org, pgsql-general@postgreSQL.org From: mikeo Subject: TOP SESSIONS? In-Reply-To: <2590.959708515@sss.pgh.pa.us> References: <3.0.1.32.20000530113504.009563b0@pop.spectrumtelecorp.com> <3.0.1.32.20000530113504.009563b0@pop.spectrumtelecorp.com> Mime-Version: 1.0 Content-Type: text/enriched; charset="us-ascii" X-Archive-Number: 200005/594 hi, in oracle you would use these two cursors to determine who was connected and what they were doing. select distinct s.sid sid, s.serial# serial, s.status status, osuser, spid , count(o.sid) counter, s.username username, s.program program, sql_address from v$session s, v$open_cursor o, v$process p where s.sid = o.sid(+) and paddr = addr group by s.sid,s.serial#, s.status , osuser, spid ,s.username, s.program ,sql_address order by 1,3 select distinct name from sys.audit_actions, v$sqltext where address = ? and action = command_type 0000,0000,8080does anyone know what tables in postgres would give me the same or similar information? TIA, mikeo