Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 07C01B5DBCA for ; Wed, 12 Oct 2011 11:21:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 23363-02 for ; Wed, 12 Oct 2011 14:21:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 5F368B5DBC2 for ; Wed, 12 Oct 2011 11:21:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p9CELCx0013081; Wed, 12 Oct 2011 10:21:12 -0400 (EDT) To: gnanam@zoniac.com cc: pgsql-admin@postgresql.org Subject: Re: How to find and/or REINDEX only GiST indexes in the database? In-reply-to: <008201cc88dd$0208c1a0$061a44e0$@com> References: <008201cc88dd$0208c1a0$061a44e0$@com> Comments: In-reply-to "Gnanakumar" message dated "Wed, 12 Oct 2011 18:16:45 +0530" Date: Wed, 12 Oct 2011 10:21:12 -0400 Message-ID: <13080.1318429272@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/59 X-Sequence-Number: 38511 "Gnanakumar" writes: > My question is, how do I find out or REINDEX *only* GiST indexes in the > database? Is there a single syntax/command that does this? You could do something like select relname from pg_class where relam = (select oid from pg_am where amname = 'gist'); regards, tom lane