[libpq] OIDs of extension types? Of custom types?

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: [libpq] OIDs of extension types? Of custom types?
Date: 2022-10-14 11:39:13
Message-ID: CAFCRh-85tjcuHViBFtn8p53-URXrgJRqs3XdKx6igHqbZed0Gg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi. I'm using binary binds and results for DMLs, as well as for COPY.

So far, I've stayed within built-in scalar and array types, thus I
could hardcode the OIDs of values "in the type-system" (in C++, via
traits).
But I'd like to venture into extension (e.g. hstore) and custom
(enums, domain, etc...) types.
Thus I'm wondering:
1) whether "official" extensions have fixed/stable OIDs, like in my
hstore example. If so, where are they defined?
2) how should I be looking up OIDs for custom (or extension?) types
with libpq? Any specific APIs? Or I need to do SQL instead?
3) If I duplicate custom types per-schema, to keep them standalone,
they'll get different OIDs, right?

Thanks for any insights on the above. --DD

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2022-10-14 11:52:32 Re: Number of updated rows with LibPQ
Previous Message Rita 2022-10-14 10:15:12 Re: recovery.conf and archive files