extended index info

From: Chris <dmagick(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: extended index info
Date: 2006-03-03 06:46:59
Message-ID: 4407E663.70807@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I'm trying to work out which fields an index relates to.

If I look at an index:

\di+ news_pkey

Schema | Name | Type | Owner | Description | Table
--------+-----------+-------+-------+-------------+--------
public | news_pkey | index | chris | | news

It doesn't show me which fields it actually applies to, only the table.
I'm sure there is a way to include which fields (whether it comes back
as an array or as multiple lines in the output I don't really care), but
I don't know enough about the pg_* tables to know where to start :)

I can see the create definition in pg_indexes but I'm after just the
fields that it applies to.

Any suggestions?

Thanks!

--
Postgresql & php tutorials
http://www.designmagick.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-03-03 06:58:46 Re: extended index info
Previous Message Andrew Watkins 2006-03-03 06:13:12 Re: Linux cluster application