Re: autovacuum: use case for indenpedent TOAST table autovac settings

Lists: pgsql-hackerspgsql-performance
From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: pgsql-performance(at)postgresql(dot)org, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: autovacuum: use case for indenpedent TOAST table autovac settings
Date: 2008-08-13 21:28:38
Message-ID: 20080813212838.GA4683@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-performance

Hackers and PG users,

Does anyone see a need for having TOAST tables be individually
configurable for autovacuum? I've finally come around to looking at
being able to use ALTER TABLE for autovacuum settings, and I'm wondering
if we need to support that case.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: autovacuum: use case for indenpedent TOAST table autovac settings
Date: 2008-08-14 00:53:10
Message-ID: 18539.1218675190@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-performance

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Does anyone see a need for having TOAST tables be individually
> configurable for autovacuum? I've finally come around to looking at
> being able to use ALTER TABLE for autovacuum settings, and I'm wondering
> if we need to support that case.

It seems like we'll want to do it somehow. Perhaps the cleanest way is
to incorporate toast-table settings in the reloptions of the parent
table. Otherwise dump/reload is gonna be a mess.

regards, tom lane


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] autovacuum: use case for indenpedent TOAST table autovac settings
Date: 2008-08-14 01:28:34
Message-ID: 20080814012834.GG4672@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-performance

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Does anyone see a need for having TOAST tables be individually
> > configurable for autovacuum? I've finally come around to looking at
> > being able to use ALTER TABLE for autovacuum settings, and I'm wondering
> > if we need to support that case.
>
> It seems like we'll want to do it somehow. Perhaps the cleanest way is
> to incorporate toast-table settings in the reloptions of the parent
> table. Otherwise dump/reload is gonna be a mess.

Yeah, Magnus was suggesting this syntax:

ALTER TABLE foo SET toast_autovacuum_enable = false;
and the like.

My question is whether there is interest in actually having support for
this, or should we just inherit the settings from the main table. My
gut feeling is that this may be needed in some cases, but perhaps I'm
overengineering the thing.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] autovacuum: use case for indenpedent TOAST table autovac settings
Date: 2008-08-14 01:30:26
Message-ID: 21063.1218677426@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-performance

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Tom Lane wrote:
>> It seems like we'll want to do it somehow. Perhaps the cleanest way is
>> to incorporate toast-table settings in the reloptions of the parent
>> table. Otherwise dump/reload is gonna be a mess.

> My question is whether there is interest in actually having support for
> this, or should we just inherit the settings from the main table. My
> gut feeling is that this may be needed in some cases, but perhaps I'm
> overengineering the thing.

It seems reasonable to inherit the parent's settings by default, in any
case. So you could do that now and then extend the feature later if
there's real demand.

regards, tom lane


From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-performance(at)postgresql(dot)org, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] autovacuum: use case for indenpedent TOAST table autovac settings
Date: 2008-08-14 09:51:01
Message-ID: 1218707461.5343.435.camel@ebony.2ndQuadrant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-performance


On Wed, 2008-08-13 at 21:30 -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > Tom Lane wrote:
> >> It seems like we'll want to do it somehow. Perhaps the cleanest way is
> >> to incorporate toast-table settings in the reloptions of the parent
> >> table. Otherwise dump/reload is gonna be a mess.
>
> > My question is whether there is interest in actually having support for
> > this, or should we just inherit the settings from the main table. My
> > gut feeling is that this may be needed in some cases, but perhaps I'm
> > overengineering the thing.
>
> It seems reasonable to inherit the parent's settings by default, in any
> case. So you could do that now and then extend the feature later if
> there's real demand.

Yeh, I can't really see a reason why you'd want to treat toast tables
differently with regard to autovacuuming. It's one more setting to get
wrong, so no thanks.

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support