[ADMIN] How to find and/or REINDEX only GiST indexes in the database?

2011-10-12 Thread Gnanakumar
Hi, We're planning to upgrade our Production server from PostgreSQL v8.2.3 to the latest version in 8.2 series, that is v8.2.22. In 8.2.11 Release Notes here http://www.postgresql.org/docs/current/interactive/release-8-2-11.html, it's been mentioned that: "Also, if you were running a previous 8

Re: [ADMIN] How to find and/or REINDEX only GiST indexes in the database?

2011-10-12 Thread Achilleas Mantzios
Στις Wednesday 12 October 2011 15:46:45 ο/η Gnanakumar έγραψε: > Hi, > > We're planning to upgrade our Production server from PostgreSQL v8.2.3 to > the latest version in 8.2 series, that is v8.2.22. > > In 8.2.11 Release Notes here > http://www.postgresql.org/docs/current/interactive/release-8

Re: [ADMIN] How to find and/or REINDEX only GiST indexes in the database?

2011-10-12 Thread Tom Lane
"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');

Re: [ADMIN] How to find and/or REINDEX only GiST indexes in the database?

2011-10-12 Thread Kevin Grittner
"Gnanakumar" wrote: > how do I find out or REINDEX *only* GiST indexes in the > database? Is there a single syntax/command that does this? I would probably capture the output from: SELECT indexdef || ';' FROM pg_indexes WHERE indexdef ~ ' USING gist '; -Kevin -- Sent via pgsql-admin