Is there a way to drop and restore an index?

From: reina(at)nsi(dot)edu (Tony Reina)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Is there a way to drop and restore an index?
Date: 2001-08-01 23:33:39
Message-ID: f40d3195.0108011533.4b6b4562@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I recall seeing a message by Tom Lane stating that dropping and
re-creating a primary index may speed up db performance. Is there a
SQL command that will do this?

My current method is to use pg_dump -s to dump out the schema. Then I
go through and cut out everything but the CREATE INDEX lines. Then, I
have to add a DROP INDEX line before that. I run this through with the
psql command line program.

Is there a better way?

Thanks.
-Tony

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Padgett 2001-08-01 23:35:15 Re: Patch for Improved Syntax Error Reporting
Previous Message Tom Lane 2001-08-01 23:32:30 Re: OID wraparound: summary and proposal