Skip to content

Commit ecf7a2e

Browse files
committed
Add pg_upgrade C comment about why we check all relkinds for regtypes.
1 parent cc53a1e commit ecf7a2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/pg_upgrade/check.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,11 @@ check_for_reg_data_type_usage(ClusterInfo *cluster)
644644
DbInfo *active_db = &cluster->dbarr.dbs[dbnum];
645645
PGconn *conn = connectToServer(cluster, active_db->db_name);
646646

647+
/*
648+
* While several relkinds don't store any data, e.g. views, they
649+
* can be used to define data types of other columns, so we
650+
* check all relkinds.
651+
*/
647652
res = executeQueryOrDie(conn,
648653
"SELECT n.nspname, c.relname, a.attname "
649654
"FROM pg_catalog.pg_class c, "

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