Re: Primary key vs unique index

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: "Voils, Steven M" <steve(at)sensorswitch(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Primary key vs unique index
Date: 2011-03-18 12:35:43
Message-ID: AANLkTikVnod3hsOJBCBa0PZrE6BbNBM_UoNH4Y9QL-XQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Autovacuum is generally more effective as it can run when it needs to
not having to wait til the end of the day. If you delete big chunks
several times a day autovac can keep up. Also, it's enabled by
default in 8.4 and up so the end user would have to actively turn it
off in this instance.

On Fri, Mar 18, 2011 at 6:21 AM, Voils, Steven M <steve(at)sensorswitch(dot)com> wrote:
> Our application supports pg 8.4 onwards.  The vacuums are run automatically by the application rather than requiring end users to enable autovacuum; the vacuums being performed are regular.
>
> -----Original Message-----
> From: Scott Marlowe [mailto:scott(dot)marlowe(at)gmail(dot)com]
> Sent: Thursday, March 17, 2011 6:31 PM
> To: Voils, Steven M
> Cc: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] Primary key vs unique index
>
> On Thu, Mar 17, 2011 at 12:59 PM, Voils, Steven M
> <steve(at)sensorswitch(dot)com> wrote:
>> Thanks for the reply.  I should have mentioned in the first post that we do delete significant amounts of the table which I thought was the cause of the bloat.  We are already performing automatic vacuums nightly.
>
> Automatic regular vacuums?  So you do or don't have autovac turned on?
>
> What version of pg are you running (8.3 or before, 8.4 or later?)
>
> Are your nightly vacuums FULL or regular vacuums?
>

--
To understand recursion, one must first understand recursion.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Geoffrey Myers 2011-03-18 12:36:46 error messages during restore
Previous Message Voils, Steven M 2011-03-18 12:21:26 Re: Primary key vs unique index