Content-Length: 276025 | pFad | http://github.com/postgrespro/postgres_cluster/commit/65b96714118d3919195d2dd47e8d2df23718c7ab

4A pg_upgrade: improve C comment about what old/new oids match · postgrespro/postgres_cluster@65b9671 · GitHub
Skip to content

Commit 65b9671

Browse files
committed
pg_upgrade: improve C comment about what old/new oids match
1 parent dd917bb commit 65b9671

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
* oids are the same between old and new clusters. This is important
1616
* because toast oids are stored as toast pointers in user tables.
1717
*
18-
* FYI, while pg_class.oid and pg_class.relfilenode are initially the same
19-
* in a cluster, but they can diverge due to CLUSTER, REINDEX, or VACUUM
20-
* FULL. The new cluster will have matching pg_class.oid and
21-
* pg_class.relfilenode values and be based on the old oid value. This can
22-
* cause the old and new pg_class.relfilenode values to differ. In summary,
23-
* old and new pg_class.oid and new pg_class.relfilenode will have the
24-
* same value, and old pg_class.relfilenode might differ.
18+
* While pg_class.oid and pg_class.relfilenode are initially the same
19+
* in a cluster, they can diverge due to CLUSTER, REINDEX, or VACUUM
20+
* FULL. In the new cluster, pg_class.oid and pg_class.relfilenode will
21+
* be the same and will match the old pg_class.oid value. Because of
22+
* this, old/new pg_class.relfilenode values will not match if CLUSTER,
23+
* REINDEX, or VACUUM FULL have been performed in the old cluster.
2524
*
2625
* We control all assignments of pg_type.oid because these oids are stored
2726
* in user composite type values.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/65b96714118d3919195d2dd47e8d2df23718c7ab

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy