From: | mikeo <mikeo(at)spectrumtelecorp(dot)com> |
---|---|
To: | pgsql-sql(at)postgreSQL(dot)org, pgsql-general(at)postgreSQL(dot)org |
Subject: | TOP SESSIONS? |
Date: | 2000-05-31 18:41:17 |
Message-ID: | 3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
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
<bold><color><param>0000,0000,8080</param><bigger>does anyone know what
tables in postgres would give me the same or similar information?
</bigger></color></bold>TIA,
mikeo
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/enriched | 814 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Charles Tassell | 2000-05-31 20:16:26 | Re: Trouble-free vacuum w/concurrent writes? (was "PostgreSQL capabilities") |
Previous Message | Dustin Sallings | 2000-05-31 17:35:29 | Re: PostgreSQL capabilities |
From | Date | Subject | |
---|---|---|---|
Next Message | Brian Powell | 2000-05-31 18:55:09 | creating rules on joined views |
Previous Message | Mitch Vincent | 2000-05-31 17:36:20 | Re: psql problem |