Question about PostgreSQL Metadata

From: "Lane Van Ingen" <lvaningen(at)esncc(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Question about PostgreSQL Metadata
Date: 2006-03-21 21:49:37
Message-ID: EKEMKEFLOMKDDLIALABIAEANCJAA.lvaningen@esncc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I am using version 8.0.3 on Windows 2003.

I would like to get a report out of PostgreSQL like the one below, EXCEPT
that I would like to associate a table name with the indexes this query
pulls
from pg_class.

Does anyone know how to do this?

-------- report query -------------
select relname,
relpages,
reltuples,
relpages,
relnatts
from pg_class
where relkind = 'i'
and relname not like 'sql_%'
and relname not like 'pg_%'
order by 1;

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-03-21 21:59:44 Re: Question about PostgreSQL Metadata
Previous Message Luis Silva 2006-03-21 15:26:38 Re: Trigger problem