| From: | Florents Tselai <florents(dot)tselai(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Get TupleDesc for extension-defined types |
| Date: | 2024-09-18 07:03:33 |
| Message-ID: | CA+v5N41sLO=HtQGVNFDe5BQADZmyQqq5y5hg2Gne8hw9yySs6g@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Correct me if I'm wrong,
but for an extension that defines composite types,
there's currently no easy way to get a TupleDesc, even for its own types.
Something like
TupleDesc get_extension_type_tupledesc(const char *extname, const char
*typname)
Here's a routine I've stolen borrowed from pramsey's code and have been
using ever since.
Could this be exposed in extension.h ? (probably without the version check)
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-First-implementation-for-get_extension_type_tuple.patch | application/octet-stream | 2.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Laurenz Albe | 2024-09-18 07:27:36 | Re: pgsql: Don't enter parallel mode when holding interrupts. |
| Previous Message | shveta malik | 2024-09-18 06:51:56 | Re: Introduce XID age and inactive timeout based replication slot invalidation |