X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5E5A8D9453 for ; Tue, 20 Sep 2005 18:54:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67776-02 for ; Tue, 20 Sep 2005 21:54:47 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 336B3D9333 for ; Tue, 20 Sep 2005 18:54:47 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j8KLsk14008579; Tue, 20 Sep 2005 17:54:46 -0400 (EDT) To: Scott Cain Cc: pgsql-interfaces@postgresql.org Subject: Re: finding indexed functions from pg_index In-reply-to: References: Comments: In-reply-to Scott Cain message dated "Tue, 20 Sep 2005 14:15:36 -0400" Date: Tue, 20 Sep 2005 17:54:45 -0400 Message-ID: <8578.1127253285@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/29 X-Sequence-Number: 5752 Scott Cain 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