git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 75f4922) | patch
Convert range_in and multirange_in to report errors softly.
2022年12月15日 17:18:36 +0000 (12:18 -0500)
2022年12月15日 17:18:36 +0000 (12:18 -0500)
commit d35a1af468162f510b6139bf81a7a41fd8ba8500
Convert range_in and multirange_in to report errors softly.

This is mostly straightforward, except that if the range type
has a canonical function, that might throw an error during range
input. (Such errors probably only occur for edge cases: in the
in-core canonical functions, it happens only if a bound has the
maximum valid value for the underlying type.) Hence, this patch
extends the soft-error regime to allow canonical functions to
return errors softly as well. Extensions implementing range
canonical functions will need modification anyway because of the
API change for range_serialize(); while at it, they might want
to do something similar to what's been done here in the in-core
canonical functions.

Discussion: https://postgr.es/m/3284599.1671075185@sss.pgh.pa.us
12 files changed:
src/backend/utils/adt/multirangetypes.c diff | blob | blame | history
src/backend/utils/adt/multirangetypes_selfuncs.c diff | blob | blame | history
src/backend/utils/adt/rangetypes.c diff | blob | blame | history
src/backend/utils/adt/rangetypes_gist.c diff | blob | blame | history
src/backend/utils/adt/rangetypes_selfuncs.c diff | blob | blame | history
src/backend/utils/adt/rangetypes_spgist.c diff | blob | blame | history
src/backend/utils/adt/rangetypes_typanalyze.c diff | blob | blame | history
src/include/utils/rangetypes.h diff | blob | blame | history
src/test/regress/expected/multirangetypes.out diff | blob | blame | history
src/test/regress/expected/rangetypes.out diff | blob | blame | history
src/test/regress/sql/multirangetypes.sql diff | blob | blame | history
src/test/regress/sql/rangetypes.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /