Add a C module to delegate the parsing of data types by col_type_is() to the Postgres core parseTypeString() function, which is the canonical type parser. This ensure that no matter the aliasing or typemod specified for a data type, we end up with exactly the same spelling as the core uses, ensuring more accurate comparisons. This was necessitated by the change in 1e1d745 that added support for type aliases but broke complicated typmods such as second(0) in interval second(0). Resolves #315.
Document the two new functions, parse_type() and format_type_string() and remove the documentation for pg_typeof(), which hasn't shipped with pgTAP in several years, since it has been in the Postgres core since 8.3.
Add a C module to delegate the parsing of data types by
col_type_is()
to the Postgres coreparseTypeString()
function, which is the canonical type parser. This ensure that no matter the aliasing or typemod specified for a data type, we end up with exactly the same spelling as the core uses, ensuring more accurate comparisons. This was necessitated by the change in 1e1d745 that added support for type aliases but broke complicated typmods such assecond(0)
ininterval second(0)
. Resolves #315.Document the two new functions,
parse_type()
andformat_type_string()
and remove the documentation forpg_typeof()
, which hasn't shipped with pgTAP in several years, since it has been in the Postgres core since 8.3.Also, fix the name of the v1.3.9 upgrade file.