pgsql: pg_upgrade: prevent automatic oid assignment

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_upgrade: prevent automatic oid assignment
Date: 2014-08-26 02:19:09
Message-ID: E1XM6Ll-0002cX-4s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_upgrade: prevent automatic oid assignment

Prevent automatic oid assignment when in binary upgrade mode. Also
throw an error when contrib/pg_upgrade_support functions are called when
not in binary upgrade mode.

This prevent automatically-assigned oids from conflicting with later
pre-assigned oids coming from the old cluster. It also makes sure oids
are preserved in call important cases.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a7ae1dcf4939cf643c5abe8dd673e4b87a6efd42

Modified Files
--------------
contrib/pg_upgrade_support/pg_upgrade_support.c | 17 +++++++++++++++++
src/backend/catalog/heap.c | 12 +++++++-----
src/backend/catalog/index.c | 13 +++++++------
src/backend/catalog/pg_enum.c | 7 ++++++-
src/backend/catalog/pg_type.c | 16 +++++++++++++---
src/backend/catalog/toasting.c | 6 +++++-
src/backend/commands/typecmds.c | 9 +++++++--
src/backend/commands/user.c | 9 +++++++--
8 files changed, 69 insertions(+), 20 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2014-08-26 03:46:13 Re: SSL renegotiation
Previous Message Bruce Momjian 2014-08-26 01:28:24 pgsql: rename macro isTempOrToastNamespace to isTempOrTempToastNamespac