pgsql: Use the macro, not handwritten code, to construct anymultirange_

2022-12-10 Thread Tom Lane
Use the macro, not handwritten code, to construct anymultirange_in().

Apparently anymultirange_in was written before we converted all
these pseudotype input functions to use a common macro, and it didn't
get fixed before committing.  Sloppy merging probably explains its
unintuitive ordering, too, so rearrange.

Noted while surveying datatype input functions to see what we
have left to fix.  I'm inclined to leave the pseudotypes as
throwing hard errors, because it's difficult to see a reason why
anyone would need something else.  But in any case, if we want
to change that, we shouldn't have to change multiple copies of
the code.

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/e730718072bdc8379f3d099c64455c20d6a6d1ad

Modified Files
--
src/backend/utils/adt/pseudotypes.c | 27 ---
1 file changed, 8 insertions(+), 19 deletions(-)



pgsql: Standardize error reports in unimplemented I/O functions.

2022-12-10 Thread Tom Lane
Standardize error reports in unimplemented I/O functions.

We chose a specific wording of the not-implemented errors for
pseudotype I/O functions and other cases where there's little
value in implementing input and/or output.  gtsvectorin never
got that memo though, nor did most of contrib.  Make these all
fall in line, mostly because I'm a neatnik but also to remove
unnecessary translatable strings.

gbtreekey_in needs a bit of extra love since it supports
multiple SQL types.  Sadly, gbtreekey_out doesn't have the
ability to do that, but I think it's unreachable anyway.

Noted while surveying datatype input functions to see what we
have left to fix.

Branch
--
master

Details
---
https://git.postgresql.org/pg/commitdiff/d02ef65bce6575e10ac0b4e7b8552ff67687c944

Modified Files
--
contrib/btree_gist/btree_gist.c   | 18 +++---
contrib/hstore/hstore_gist.c  | 14 ++
contrib/intarray/_intbig_gist.c   | 10 ++
contrib/ltree/ltree_gist.c| 10 ++
contrib/pg_trgm/trgm_gist.c   | 14 ++
src/backend/utils/adt/tsgistidx.c |  6 --
6 files changed, 47 insertions(+), 25 deletions(-)