Re: Fighting the autovacuumer (to prevent wraparound)

From: bricklen <bricklen(at)gmail(dot)com>
To: Michael Graham <mgraham(at)bloxx(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Fighting the autovacuumer (to prevent wraparound)
Date: 2013-10-03 18:53:06
Message-ID: CAGrpgQ_Sg9t3k7SD+OGdM72C_zLe0Rkh3REExSEJHkoBFPMC3Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 3, 2013 at 11:48 AM, Michael Graham <mgraham(at)bloxx(dot)com> wrote:

> Hi all,
>
> We partition the data in postgres in a per-month basis and run a script
> to delete old partitions.

Does "delete" = "drop"?

> Sometimes this script fails and the delete
> doesn't happen because of a deadlock, today I noticed that it was the
> autovacuumer that fighting with the script.
>

Are you uninheriting the partition before attempting to get rid of it?
Eg.
ALTER TABLE your_partition NO INHERIT the_parent_table;

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Graham 2013-10-03 19:18:06 Re: Fighting the autovacuumer (to prevent wraparound)
Previous Message Michael Graham 2013-10-03 18:48:11 Fighting the autovacuumer (to prevent wraparound)