Re: Primary key vs unique index - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Primary key vs unique index
Date
Msg-id AANLkTi=m9xtpihOYC9+EfGNWQDqEc3ScZBn4sTthr+48@mail.gmail.com
Whole thread Raw
In response to Primary key vs unique index  ("Voils, Steven M" <steve@sensorswitch.com>)
Responses Re: Primary key vs unique index
List pgsql-general
On Thu, Mar 17, 2011 at 6:19 AM, Voils, Steven M <steve@sensorswitch.com> wrote:
> Is there a fundamental difference between a primary key and a unique index?
> Currently we have primary keys on tables that have significant amounts of
> updates performed on them, as a result the primary key indexes are becoming
> significantly bloated.  There are other indexes on the tables that also
> become bloated as a result of this, but these are automatically rebuild
> periodically by the application (using the concurrently flag) when read
> usage is expected to be very low.

If you're experiencing bloat, but not deleting huge chunks of your
table at a time, then you're not vacuuming aggressively enough

pgsql-general by date:

Previous
From: bubba postgres
Date:
Subject: Re: Is TimeZone applied with TIMESTAMP WITHOUT TIME ZONE and Extract( EPOCH ...)?
Next
From: Scott Marlowe
Date:
Subject: Re: Primary key vs unique index