diff options
author | Bruce Momjian <bruce@momjian.us> | 2014-08-07 14:56:13 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2014-08-07 14:56:13 -0400 |
commit | f445b368d357332fb8392384ee4d75f21f07c5bb (patch) | |
tree | a6fce5ef4e2d6636fac9a982eecc2000a05fcf28 /contrib/pg_upgrade/pg_upgrade.c | |
parent | dc431f41672611d5575e330209784adad73b4f0d (diff) |
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
Diffstat (limited to 'contrib/pg_upgrade/pg_upgrade.c')
-rw-r--r-- | contrib/pg_upgrade/pg_upgrade.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/pg_upgrade.c b/contrib/pg_upgrade/pg_upgrade.c index 0c198c28a5e..16ffd5f652a 100644 --- a/contrib/pg_upgrade/pg_upgrade.c +++ b/contrib/pg_upgrade/pg_upgrade.c @@ -363,6 +363,8 @@ create_new_objects(void) if (GET_MAJOR_VERSION(old_cluster.major_version) < 903) set_frozenxids(true); + optionally_create_toast_tables(); + /* regenerate now that we have objects in the databases */ get_db_and_rel_infos(&new_cluster); |