Re: finding indexed functions from pg_index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Cain <cain(at)cshl(dot)edu>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: finding indexed functions from pg_index
Date: 2005-09-20 21:54:45
Message-ID: 8578.1127253285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Scott Cain <cain(at)cshl(dot)edu> writes:
> What I haven't figure out is this: how does one determine what the
> declarative statement is for a functional index that is obtained from
> pg_index.indexprs? What I would like to be able to do is be able to
> recreate the SQL that defined that index. Is that represented somewhere
> in another system table?

Use pg_get_indexdef().

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Fuhr 2005-09-20 22:03:23 Re: finding indexed functions from pg_index
Previous Message Scott Cain 2005-09-20 18:15:36 finding indexed functions from pg_index