Re: Configure Different Databases on One Server - Mailing list pgsql-general

From Tom Lane
Subject Re: Configure Different Databases on One Server
Date
Msg-id 3572.1446146072@sss.pgh.pa.us
Whole thread Raw
In response to Re: Configure Different Databases on One Server  (John R Pierce <pierce@hogranch.com>)
Responses Re: Configure Different Databases on One Server  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
John R Pierce <pierce@hogranch.com> writes:
> On 10/29/2015 11:52 AM, Jim Longwill wrote:
>> I would like to do a different vacuum configuration on ddev2 than on
>> ddev1, such as turning off autovacuum, etc.  How do I do this? E.g.
>> how do I turn off autovacuum on one database .. using different
>> postgres.conf files(?) or within the database, without affecting the
>> other database(s) on the same localhost?
>> Is there a relatively easy way to do this?

>      alter database dbname set autovacuum = false;

Might be trickier than it looks though.  I think individual autovacuum
worker processes will pick up such settings, but the launcher will not
since it doesn't ever attach to any individual database.  So a lot of
undocumented implementation details would matter as to where particular
settings get used ...

Might be better to settle for configuring specific large tables using
per-table vacuum settings, and not sweat the small stuff at a per-DB
level.

            regards, tom lane


pgsql-general by date:

Previous
From: Dane Foster
Date:
Subject: Re: mysql_fdw trouble
Next
From: Rob Sargent
Date:
Subject: Re: Domain check constraint not honored?