Skip site navigation (1) Skip section navigation (2)

BUG #5734: autovacuum_enabled input should be validated, standardized.

From: "Mark Stosberg" <mark(at)summersault(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5734: autovacuum_enabled input should be validated, standardized.
Date: 2010-10-30 14:04:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5734
Logged by:          Mark Stosberg
Email address:      mark(at)summersault(dot)com
PostgreSQL version: 9.0.1
Operating system:   FreeBSD
Description:        autovacuum_enabled input should be validated,

The "autovacuum_enabled" storage parameter claims to be a boolean type:
... but it fails to behave a normal boolean.

Normally, you could set a boolean with a value of false, 'off' or 'f',
but you would always get back a value of 'f'  With this value, there is
no translation.

I think this kind of boolean should be handled like a standard
PostgreSQL boolean.

I noticed because the Slony code base has a hardcoded check for
"autovacuum_enabled=off", when a false value could also be stored as

We should be able to rely on this value being always returned as
"autovacuum_enabled='f'" just a normal boolean would.



pgsql-bugs by date

Next:From: Arturas MazeikaDate: 2010-10-30 14:29:13
Subject: BUG #5735: pg_upgrade thinks that it did not start the old server
Previous:From: Marcus WirsingDate: 2010-10-30 11:07:28
Subject: BUG #5733: Strange planer behaviour with inherited tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group