On Wed, 21 Mar 2012 16:18:54 +0100, Pol wrote:
Quote:
Hi all,
I'm just wondering, what is the equivalent of the Oracle Wait Interface
(i.e. the V$<View_Name> system) in PostgreSQL?
TIA and rgs.
Paul... |
Freeware Postgres doesn't have wait event interface. EnterpriseDB does
have one, but it isn't free.. There are some internal tables which show
statistics, the names start with "pg_".
One of the more useful ones is installed as extension:
gogala=# \d pg_stat_statements
View "public.pg_stat_statements"
Column | Type | Modifiers
---------------------+------------------+-----------
userid | oid |
dbid | oid |
query | text |
calls | bigint |
total_time | double precision |
rows | bigint |
shared_blks_hit | bigint |
shared_blks_read | bigint |
shared_blks_written | bigint |
local_blks_hit | bigint |
local_blks_read | bigint |
local_blks_written | bigint |
temp_blks_read | bigint |
temp_blks_written | bigint |
That is the basis for pg_statspack
--
http://mgogala.byethost5.com