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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d23a3a6) | patch
Desupport jsonb subscript deletion on objects
Mon, 8 Jun 2015 00:46:00 +0000 (20:46 -0400)
Mon, 8 Jun 2015 00:46:00 +0000 (20:46 -0400)
commit b81c7b4098f52e64df89efe1461ba00a54649a10
Desupport jsonb subscript deletion on objects

Supporting deletion of JSON pairs within jsonb objects using an
array-style integer subscript allowed for surprising outcomes. This was
mostly due to the implementation-defined ordering of pairs within
objects for jsonb.

It also seems desirable to make jsonb integer subscript deletion
consistent with the 9.4 era general purpose integer subscripting
operator for jsonb (although that operator returns NULL when an object
is encountered, while we prefer here to throw an error).

Peter Geoghegan, following discussion on -hackers.
doc/src/sgml/func.sgml diff | blob | blame | history
src/backend/utils/adt/jsonfuncs.c diff | blob | blame | history
src/test/regress/expected/jsonb.out diff | blob | blame | history
src/test/regress/expected/jsonb_1.out diff | blob | blame | history
src/test/regress/sql/jsonb.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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