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

From Voils, Steven M
Subject Re: Primary key vs unique index
Date
Msg-id 856778F98E4F4B4F896F2B70C8164A3437FA9D84BE@EXCHANGE-MBX2.AcuityLightingGroup.com
Whole thread Raw
In response to Re: Primary key vs unique index  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Primary key vs unique index  (Derrick Rice <derrick.rice@gmail.com>)
Re: Primary key vs unique index  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
What are the general guidelines under which autovacuum will trigger?  I was unaware it was turned on by default for the
newerversions.  Would it be worthwhile to leave the manual vacuuming on?  Currently it runs immediately after large
sectionsof the tables are deleted.  Or would it be expected that autovac would pick these changes up and run anyway?   

-----Original Message-----
From: Scott Marlowe [mailto:scott.marlowe@gmail.com]
Sent: Friday, March 18, 2011 8:36 AM
To: Voils, Steven M
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Primary key vs unique index

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@sensorswitch.com> wrote:
> Our application supports pg 8.4 onwards.  The vacuums are run automatically by the application rather than requiring
endusers to enable autovacuum; the vacuums being performed are regular. 
>
> -----Original Message-----
> From: Scott Marlowe [mailto:scott.marlowe@gmail.com]
> Sent: Thursday, March 17, 2011 6:31 PM
> To: Voils, Steven M
> Cc: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] Primary key vs unique index
>
> On Thu, Mar 17, 2011 at 12:59 PM, Voils, Steven M
> <steve@sensorswitch.com> wrote:
>> Thanks for the reply.  I should have mentioned in the first post that we do delete significant amounts of the table
whichI 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.

pgsql-general by date:

Previous
From: "Voils, Steven M"
Date:
Subject: Re: Primary key vs unique index
Next
From: "tamanna madaan"
Date:
Subject: SOCK_wait_for_ready function call caused a query to get stuck