mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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.
This commit is contained in:
@ -266,7 +266,7 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
|
||||
|
||||
/*
|
||||
* pg_largeobject contains user data that does not appear the pg_dumpall
|
||||
* --schema-only output, so we have to upgrade that system table heap and
|
||||
* --schema-only output, so we have to copy that system table heap and
|
||||
* index. Ideally we could just get the relfilenode from template1 but
|
||||
* pg_largeobject_loid_pn_index's relfilenode can change if the table was
|
||||
* reindexed so we get the relfilenode for each database and upgrade it as
|
||||
|
Reference in New Issue
Block a user