pg_upgrade: prevent oid conflicts with new-cluster TOAST tables

Enterprise / PostgreSQL - Bruce Momjian [momjian.us] - 7 August 2014 13:56 UTC

Previously, TOAST tables only required in the new cluster could cause oid conflicts if they were auto-numbered and a later conflicting oid had to be assigned.

Backpatch through 9.3

4c6780f pg_upgrade: prevent oid conflicts with new-cluster TOAST tables
contrib/pg_upgrade/dump.c | 70 ++++++++++++++++++++++++++++++++++
contrib/pg_upgrade/pg_upgrade.c | 2 +
contrib/pg_upgrade/pg_upgrade.h | 1 +
src/backend/catalog/toasting.c | 55 +++++++++++++++++++++-----
src/include/catalog/binary_upgrade.h | 5 +++
5 files changed, 123 insertions(+), 10 deletions(-)

Upstream: git.postgresql.org


  • Share