pg_upgrade: prevent oid conflicts with new-cluster TOAST tables

Bruce Momjian <bruce@momjian.us>

Commit: fca9f349ba6815ccf4f6ad0747a86549ccf8685e
Author: Bruce Momjian <bruce@momjian.us>
Date: 2014-08-07T18:56:13Z
Releases: 9.3.6
pg_upgrade: prevent oid conflicts with new-cluster TOAST tables

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

Files

PathChange+/−
contrib/pg_upgrade/dump.c modified +73 −0
contrib/pg_upgrade/pg_upgrade.c modified +2 −0
contrib/pg_upgrade/pg_upgrade.h modified +1 −0
src/backend/catalog/toasting.c modified +49 −10