We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a5e65 commit 79f6a94Copy full SHA for 79f6a94
src/backend/bootstrap/bootstrap.c
@@ -934,6 +934,29 @@ gettype(char *type)
934
return app->am_oid;
935
}
936
937
+
938
+ /*
939
+ * The type wasn't known; reload the pg_type contents and check again
940
+ * to handle composite types, added since last populating the list.
941
+ */
942
943
+ list_free_deep(Typ);
944
+ Typ = NIL;
945
+ populate_typ_list();
946
947
948
+ * Calling gettype would result in infinite recursion for types missing
949
+ * in pg_type, so just repeat the lookup.
950
951
+ foreach (lc, Typ)
952
+ {
953
+ struct typmap *app = lfirst(lc);
954
+ if (strncmp(NameStr(app->am_typ.typname), type, NAMEDATALEN) == 0)
955
956
+ Ap = app;
957
+ return app->am_oid;
958
+ }
959
960
961
else
962
{
0 commit comments