diff options
| author | Bruce Momjian <bruce@momjian.us> | 2011-04-25 12:00:21 -0400 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2011-04-25 12:00:21 -0400 |
| commit | 76dd09bbec893c02376e3440a6a86a3b994d804c (patch) | |
| tree | 721a384f3511d2dc72642afeea48629019a15bb3 /src/backend/catalog/pg_enum.c | |
| parent | 02e6a115cc6149551527a45545fd1ef8d37e6aa0 (diff) | |
| download | postgresql-76dd09bbec893c02376e3440a6a86a3b994d804c.tar.gz | |
Add postmaster/postgres undocumented -b option for binary upgrades.
This option turns off autovacuum, prevents non-super-user connections,
and enables oid setting hooks in the backend. The code continues to use
the old autoavacuum disable settings for servers with earlier catalog
versions.
This includes a catalog version bump to identify servers that support
the -b option.
Diffstat (limited to 'src/backend/catalog/pg_enum.c')
| -rw-r--r-- | src/backend/catalog/pg_enum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/catalog/pg_enum.c b/src/backend/catalog/pg_enum.c index 08d8aa13f3..61a9322d90 100644 --- a/src/backend/catalog/pg_enum.c +++ b/src/backend/catalog/pg_enum.c @@ -21,6 +21,7 @@ #include "catalog/pg_enum.h" #include "catalog/pg_type.h" #include "storage/lmgr.h" +#include "miscadmin.h" #include "utils/builtins.h" #include "utils/fmgroids.h" #include "utils/rel.h" @@ -311,7 +312,7 @@ restart: } /* Get a new OID for the new label */ - if (OidIsValid(binary_upgrade_next_pg_enum_oid)) + if (IsBinaryUpgrade && OidIsValid(binary_upgrade_next_pg_enum_oid)) { /* * Use binary-upgrade override for pg_enum.oid, if supplied. During |
