From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Cain <cain@cshl.edu>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: finding indexed functions from pg_index
Date: Tue, 20 Sep 2005 17:54:45 -0400
Message-ID: <8578.1127253285@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.05.10509201409020.23347-100000@phage.cshl.edu>
References: <Pine.GSO.4.05.10509201409020.23347-100000@phage.cshl.edu>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, cain@cshl.edu
Subject: Re: finding indexed functions from pg_index
In-Reply-To: <8578.1127253285@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox