The current oid package is a static list of type oids, last updated for PostgreSQL 9.6. The oids may be different per PostgreSQL database or PostgreSQL-compatible database, and may (and do) conflict. We can't even update it to PostgreSQL 18 because some oids got re-used (#1292).
We should deprecate the oid package and fetch this from pg_settings. We can retain a list of common oids (text, int, etc.) that are unlikely to ever change.
The current oid package is a static list of type oids, last updated for PostgreSQL 9.6. The oids may be different per PostgreSQL database or PostgreSQL-compatible database, and may (and do) conflict. We can't even update it to PostgreSQL 18 because some oids got re-used (#1292).
We should deprecate the oid package and fetch this from pg_settings. We can retain a list of common oids (text, int, etc.) that are unlikely to ever change.