Re: reindexing keys in postgres

From: Bill Moran <wmoran(at)potentialtech(dot)com>
To: "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: reindexing keys in postgres
Date: 2007-04-06 20:10:06
Message-ID: 20070406161006.671cf6eb.wmoran@potentialtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to "Harpreet Dhaliwal" <harpreet(dot)dhaliwal01(at)gmail(dot)com>:

> Hi,
> Lately i was searching for a way I could reindex all my keys. Primary Keys
> in particular.
> Really didn't find any manual that could guide me through.
>
> Reason i wanted to reindex my PK is that whenever i insert a record in the
> table, even though that record is unique, i get an error saying violation of
> primary key.
> So i thought of reindexing my keys.
>
> Can anyone give me pointers for the same

http://www.postgresql.org/docs/8.2/static/sql-reindex.html

--
Bill Moran
http://www.potentialtech.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2007-04-06 20:11:23 Re: Help!! Crash recovery
Previous Message Harpreet Dhaliwal 2007-04-06 19:51:03 reindexing keys in postgres