pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: gnanam@zoniac.com
Cc: pgsql-admin@postgresql.org
Subject: Re: How to find and/or REINDEX only GiST indexes in the database?
Date: Wed, 12 Oct 2011 10:21:12 -0400
Message-ID: <13080.1318429272@sss.pgh.pa.us> (raw)
In-Reply-To: <008201cc88dd$0208c1a0$061a44e0$@com>
References: <008201cc88dd$0208c1a0$061a44e0$@com>

"Gnanakumar" <gnanam@zoniac.com> 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



view thread (5+ messages)  latest in thread

Message-ID: <13080.1318429272@sss.pgh.pa.us>
Permalink:  ../13080.1318429272@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13080.1318429272@sss.pgh.pa.us

 · 

reply

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gnanam@zoniac.com
  Subject: Re: How to find and/or REINDEX only GiST indexes in the database?
  In-Reply-To: <13080.1318429272@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