On Wed, Mar 30, 2011 at 10:57 AM, Bruce Momjian <br...@momjian.us> wrote: > I think we have three options: > > o find if the use of autovacuum_freeze_max_age is safe, or make > it safe > o document that autovacuum_naptime always happens before > autovacuum does anything and set it high > o modify autovacuum to be an enum, with values on/off/disabled > > I think the last one makes more sense, and is safer if we need to > backpatch this. Creating a new variable for this would be confusing > because it could conflict with the 'autovacuum' setting.
I have to admit the prospect of abuse is slightly frightening to me here. I guess we can't be held responsible for users who do dumb things, but it might not be too clear to someone what the difference is between autovacuum=off and autovacuum=disabled. I don't really understand why this is an issue in the first place, though. Surely we must be setting the XID counter on the new cluster to match the one on the old cluster, and migrating the relfrozenxid and datfrozenxid settings, so why does it matter if someone runs vacuum freeze? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers