mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -364,6 +364,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);
|
||||
|
||||
|
Reference in New Issue
Block a user