From: Bruce Momjian Date: Thu, 19 Jan 2012 21:04:34 +0000 (-0500) Subject: Add pg_upgrade C comment about why we check all relkinds for regtypes. X-Git-Tag: REL9_2_BETA1~566 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecf7a2ea387a409f6152c05f60e5765c7436b8df;p=postgresql Add pg_upgrade C comment about why we check all relkinds for regtypes. --- diff --git a/contrib/pg_upgrade/check.c b/contrib/pg_upgrade/check.c index 8594d2617b..891eb9a9f0 100644 --- a/contrib/pg_upgrade/check.c +++ b/contrib/pg_upgrade/check.c @@ -644,6 +644,11 @@ check_for_reg_data_type_usage(ClusterInfo *cluster) DbInfo *active_db = &cluster->dbarr.dbs[dbnum]; PGconn *conn = connectToServer(cluster, active_db->db_name); + /* + * While several relkinds don't store any data, e.g. views, they + * can be used to define data types of other columns, so we + * check all relkinds. + */ res = executeQueryOrDie(conn, "SELECT n.nspname, c.relname, a.attname " "FROM pg_catalog.pg_class c, "