Re: Location of index information

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Jim Beckstrom <jrbeckstrom(at)sbcglobal(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Location of index information
Date: 2005-12-08 16:44:05
Message-ID: c2d9e70e0512080844l126c35ddl478e04d6d4263d67@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 12/7/05, Jim Beckstrom <jrbeckstrom(at)sbcglobal(dot)net> wrote:
> Now that I have read the glossary for pg_index (thank you for the link),
> there wouldn't be a php function available to do the selection of all of the
> indexes for a table, would there?
>
> Jim
>

if you execute psql with the -E option when you do \d table you will
get all sql you need to retrieve the information it shows...

then, you can copy and paste that sql to your php script or make a
view as tom suggest...

but in general i guess select * from pg_views is a good point to start

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Alan Stange 2005-12-08 18:23:39 Re: Compile/Link Error for Postgres 8.1.0 on Solaris 8
Previous Message Bhide, Rajan 2005-12-08 14:48:29 Compile/Link Error for Postgres 8.1.0 on Solaris 8