Re: how to find index columns - Mailing list pgsql-hackers

From Andrew - Supernews
Subject Re: how to find index columns
Date
Msg-id slrnendtgp.1aj7.andrew+nonews@atlantis.supernews.net
Whole thread Raw
In response to Re: how to find index columns  (Andrew - Supernews <andrew+nonews@supernews.com>)
List pgsql-hackers
On 2006-12-06, "Eric B. Ridge" <ebr@tcdi.com> wrote:
> On Dec 5, 2006, at 11:17 PM, Andrew - Supernews wrote:
>
>> Way ahead of you: http://pgfoundry.org/projects/newsysviews/ (see the
>> source code repo, there are no releases)
>
> Neat.  I looked at this:
>
> http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/newsysviews/newsysview/ 
> sql/indexes.sql?rev=1.2
>
> Seems both views are missing the indexed column name(s).  I ran into  
> a situation where I needed to present a list of all indexed columns  
> on a table, hence my "information_schema.indexes" view.  It attempts  
> to parse the columns from the index definition.  It just can't parse  
> definitions that use functional indexes.
>
> Maybe you can consider adding a similar column to these views?   

Still way ahead of you: see the index_columns views.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


pgsql-hackers by date:

Previous
From: Hubert FONGARNAND
Date:
Subject: Re: Bug in PostGreSQL 8.2
Next
From: Andrew - Supernews
Date:
Subject: Re: how to find index columns