public inbox for [email protected]
help / color / mirror / Atom feedFrom: Justin Pryzby <[email protected]>
Subject: [PATCH 1/2] Allow composite types in bootstrap
Date: Tue, 17 Nov 2020 09:28:33 -0600
---
src/backend/bootstrap/bootstrap.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index a7ed93fdc1..ed6b3906ee 100644
--- a/src/backend/bootstrap/bootstrap.c
+++ b/src/backend/bootstrap/bootstrap.c
@@ -937,6 +937,21 @@ gettype(char *type)
return (*app)->am_oid;
}
}
+
+ /* The type wasn't known; check again to handle composite
+ * types, added since first populating the array. */
+ Typ = NULL;
+ populate_typ_array();
+
+ /* Need to avoid infinite recursion... */
+ for (app = Typ; *app != NULL; app++)
+ {
+ if (strncmp(NameStr((*app)->am_typ.typname), type, NAMEDATALEN) == 0)
+ {
+ Ap = *app;
+ return (*app)->am_oid;
+ }
+ }
}
else
{
--
2.17.0
--FCuugMFkClbJLl1L
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0002-Add-pg_statistic_ext_data.stxdexpr.patch"
view thread (184+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH 1/2] Allow composite types in bootstrap
In-Reply-To: <no-message-id-1864788@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox