Fix new pg_upgrade query not to rely on regnamespace

Álvaro Herrera <alvherre@kurilemu.de>

Commit: bcb8d47cdd5e894ea9625feb11a95901f8358bb4
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2025-07-04T19:30:05Z
Releases: 17.6
Fix new pg_upgrade query not to rely on regnamespace

That was invented in 9.5, and pg_upgrade claims to support back to 9.0.
But we don't need that with a simple query change, tested by Tom Lane.

Discussion: https://postgr.es/m/202507041645.afjl5rssvrgu@alvherre.pgsql

Files

PathChange+/−
src/bin/pg_upgrade/check.c modified +4 −3

Discussion