From 76dd09bbec893c02376e3440a6a86a3b994d804c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 25 Apr 2011 12:00:21 -0400 Subject: 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. --- src/backend/commands/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/commands/user.c') diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c index 3f7d4992af8..838d6eba205 100644 --- a/src/backend/commands/user.c +++ b/src/backend/commands/user.c @@ -388,7 +388,7 @@ CreateRole(CreateRoleStmt *stmt) * pg_largeobject_metadata contains pg_authid.oid's, so we use the * binary-upgrade override, if specified. */ - if (OidIsValid(binary_upgrade_next_pg_authid_oid)) + if (IsBinaryUpgrade && OidIsValid(binary_upgrade_next_pg_authid_oid)) { HeapTupleSetOid(tuple, binary_upgrade_next_pg_authid_oid); binary_upgrade_next_pg_authid_oid = InvalidOid; -- cgit v1.2.3