mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user