Re: finding indexed functions from pg_index - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: finding indexed functions from pg_index
Date
Msg-id 8578.1127253285@sss.pgh.pa.us
Whole thread Raw
In response to finding indexed functions from pg_index  (Scott Cain <cain@cshl.edu>)
List pgsql-interfaces
Scott Cain <cain@cshl.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


pgsql-interfaces by date:

Previous
From: Scott Cain
Date:
Subject: finding indexed functions from pg_index
Next
From: Michael Fuhr
Date:
Subject: Re: finding indexed functions from pg_index