Skip to content

Commit 3095643

Browse files
committed
Simplify pg_upgrade C comment about what is preserved.
1 parent f75383e commit 3095643

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@
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-
* The only place where old/new relfilenode might not match is
19-
* pg_largeobject, pg_largeobject_metadata, and its indexes,
20-
* which can change their relfilenode values due to a cluster, reindex,
21-
* or vacuum full. (We don't create those so have no control over their
22-
* new relfilenode values.)
23-
*
2418
* FYI, while pg_class.oid and pg_class.relfilenode are intially the same
25-
* in a cluster, but they can diverge due to cluster, reindex, or vacuum
26-
* full. The new cluster will again have matching pg_class.relfilenode
27-
* and pg_class.oid values, but based on the old relfilenode value, so the
28-
* old/new oids might differ.
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.
2923
*
30-
* We control all assignments of pg_type.oid because these oid are stored
24+
* We control all assignments of pg_type.oid because these oids are stored
3125
* in user composite type values.
3226
*
33-
* We control all assignments of pg_enum.oid because these oid are stored
27+
* We control all assignments of pg_enum.oid because these oids are stored
3428
* in user tables as enum values.
3529
*/
3630

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy