@@ -76,3 +76,70 @@ NOTICE: pg_database contains unpinned initdb-created object(s)
7676NOTICE: pg_extension contains unpinned initdb-created object(s)
7777NOTICE: pg_rewrite contains unpinned initdb-created object(s)
7878NOTICE: pg_tablespace contains unpinned initdb-created object(s)
79+ -- **************** pg_class ****************
80+ -- Look for system tables with varlena columns but no toast table. At
81+ -- the moment, the result just records the status quo so that changes
82+ -- are deliberate. Which system tables have toast tables is a bit
83+ -- arbitrary at the moment.
84+ SELECT relname, attname, atttypid::regtype
85+ FROM pg_class c JOIN pg_attribute a ON c.oid = attrelid
86+ WHERE c.oid < 16384 AND
87+ reltoastrelid = 0 AND
88+ relkind = 'r' AND
89+ attstorage != 'p'
90+ ORDER BY 1, 2;
91+ relname | attname | atttypid
92+ -------------------------+-----------------+--------------
93+ pg_aggregate | agginitval | text
94+ pg_aggregate | aggminitval | text
95+ pg_attribute | attacl | aclitem[]
96+ pg_attribute | attfdwoptions | text[]
97+ pg_attribute | attmissingval | anyarray
98+ pg_attribute | attoptions | text[]
99+ pg_authid | rolpassword | text
100+ pg_class | relacl | aclitem[]
101+ pg_class | reloptions | text[]
102+ pg_class | relpartbound | pg_node_tree
103+ pg_collation | collversion | text
104+ pg_database | datacl | aclitem[]
105+ pg_default_acl | defaclacl | aclitem[]
106+ pg_event_trigger | evttags | text[]
107+ pg_extension | extcondition | text[]
108+ pg_extension | extconfig | oid[]
109+ pg_extension | extversion | text
110+ pg_foreign_data_wrapper | fdwacl | aclitem[]
111+ pg_foreign_data_wrapper | fdwoptions | text[]
112+ pg_foreign_server | srvacl | aclitem[]
113+ pg_foreign_server | srvoptions | text[]
114+ pg_foreign_server | srvtype | text
115+ pg_foreign_server | srvversion | text
116+ pg_foreign_table | ftoptions | text[]
117+ pg_index | indexprs | pg_node_tree
118+ pg_index | indpred | pg_node_tree
119+ pg_init_privs | initprivs | aclitem[]
120+ pg_language | lanacl | aclitem[]
121+ pg_largeobject | data | bytea
122+ pg_largeobject_metadata | lomacl | aclitem[]
123+ pg_namespace | nspacl | aclitem[]
124+ pg_partitioned_table | partexprs | pg_node_tree
125+ pg_pltemplate | tmplacl | aclitem[]
126+ pg_pltemplate | tmplhandler | text
127+ pg_pltemplate | tmplinline | text
128+ pg_pltemplate | tmpllibrary | text
129+ pg_pltemplate | tmplvalidator | text
130+ pg_policy | polqual | pg_node_tree
131+ pg_policy | polroles | oid[]
132+ pg_policy | polwithcheck | pg_node_tree
133+ pg_replication_origin | roname | text
134+ pg_subscription | subconninfo | text
135+ pg_subscription | subpublications | text[]
136+ pg_subscription | subsynccommit | text
137+ pg_tablespace | spcacl | aclitem[]
138+ pg_tablespace | spcoptions | text[]
139+ pg_ts_dict | dictinitoption | text
140+ pg_type | typacl | aclitem[]
141+ pg_type | typdefault | text
142+ pg_type | typdefaultbin | pg_node_tree
143+ pg_user_mapping | umoptions | text[]
144+ (51 rows)
145+
0 commit comments