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

pgsql: Force pg_upgrade's to preserve pg_class.oid,not pg_class.relfil

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Force pg_upgrade's to preserve pg_class.oid,not pg_class.relfil
Date: 2011-01-08 02:26:15
Message-ID: E1PbOVT-0000QN-6T@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Force pg_upgrade's to preserve pg_class.oid, not pg_class.relfilenode.
Toast tables have identical pg_class.oid and pg_class.relfilenode, but
for clarity it is good to preserve the pg_class.oid.

Update comments regarding what is preserved, and do some
variable/function renaming for clarity.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=2896c87ce4dc789722296f010eaefd5cbb86ece3

Modified Files
--------------
contrib/pg_upgrade/function.c                   |   10 ++--
contrib/pg_upgrade/info.c                       |    2 +-
contrib/pg_upgrade/pg_upgrade.c                 |   35 ++++++++-----
contrib/pg_upgrade/pg_upgrade.h                 |    4 +-
contrib/pg_upgrade_support/pg_upgrade_support.c |   63 +++++++++++++----------
src/backend/catalog/heap.c                      |   18 +++---
src/backend/catalog/index.c                     |   10 ++--
src/backend/catalog/toasting.c                  |   12 ++--
src/backend/commands/typecmds.c                 |    8 ++--
src/bin/pg_dump/pg_dump.c                       |   56 +++++++++------------
10 files changed, 112 insertions(+), 106 deletions(-)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2011-01-08 02:59:56
Subject: pgsql: Fix pg_upgrade of large object permissions by preservingpg_auth
Previous:From: Tom LaneDate: 2011-01-08 02:11:09
Subject: pgsql: Ooops,forgot to fix contrib/tsearch2's references to GIN suppor

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