From 0ca95279bde8f3ce069a749253eba7c04988003e Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Wed, 9 Apr 2025 12:12:27 -0500 Subject: [PATCH v1 1/1] Mention that we preserve database OIDs in pg_upgrade.c comment. Oversight in commit aa01051418. Reported-by: Tom Lane Discussion: https://postgr.es/m/4055696.1744134682%40sss.pgh.pa.us --- src/bin/pg_upgrade/pg_upgrade.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/pg_upgrade/pg_upgrade.c b/src/bin/pg_upgrade/pg_upgrade.c index 72b5a5fde5a..d9db48dba0d 100644 --- a/src/bin/pg_upgrade/pg_upgrade.c +++ b/src/bin/pg_upgrade/pg_upgrade.c @@ -32,6 +32,9 @@ * We control all assignments of pg_authid.oid for historical reasons (the * oids used to be stored in pg_largeobject_metadata, which is now copied via * SQL commands), that might change at some point in the future. + * + * We control all assignments of pg_database.oid because we want the directory + * names to match between the old and new cluster. */ -- 2.39.5 (Apple Git-154)