Closed gwynne closed 1 year ago
Can we add a comment where the source of truth is?
The source of truth I used is the actual pg_type
table in a fresh database as it appears in my installation of Postgres 15, with a bunch of "really internal" types removed by eye; there's not really any one place to point for truth other than the Postgres docs.
Merging #371 (fe83e88) into main (fcb2e66) will increase coverage by
0.32%
. The diff coverage is54.91%
.
IMPORTANT: This PR only deals with defining the well-known OIDs for Postgres built-in types. Except for adding more array/element type mappings, it does NOT add any additional support for any of these types, not even basic encoding and decoding! That support will be a separate PR.
Including but not limited to:
lseg
,path
,box
,polygon
,line
)reg*
types (regclass
,regtype
, etc.)macaddr8
,inet
,cidr
)bit
andbit varying
cstring
,internal
,any
,anycompatible
, etc.)tsvector
,tsquery
)numrange
,tsrange
,tstzrange
,daterange
)jsonpath
int4multirange
,nummultirange
, etc.)tid
,xid
,cid
,xid8
,pg_lsn
,trigger
, etc.)Also adds full two-way mappings for every known array type (including existing ones that were missing the mapping, like
money
).Requires minor version bump (adds new public API and deprecates
PostgresDataType.pgNodeTree
)