Re: how to find index columns

From: Andrew - Supernews <andrew+nonews(at)supernews(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: how to find index columns
Date: 2006-12-06 16:55:53
Message-ID: slrnendtgp.1aj7.andrew+nonews@atlantis.supernews.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2006-12-06, "Eric B. Ridge" <ebr(at)tcdi(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew - Supernews 2006-12-06 17:05:46 Re: how to find index columns
Previous Message Hubert FONGARNAND 2006-12-06 16:51:56 Re: Bug in PostGreSQL 8.2