From 473865048517c7808ddcf2299d054d8fe30fc6d5 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan <andrew@dunslane.net> Date: Fri, 17 Jul 2015 21:08:03 -0400 Subject: [PATCH] Release note compatibility item Note that json and jsonb extraction operators no longer consider a negative subscript to be invalid. --- doc/src/sgml/release-9.5.sgml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/src/sgml/release-9.5.sgml b/doc/src/sgml/release-9.5.sgml index 817b973546a..0b12420aead 100644 --- a/doc/src/sgml/release-9.5.sgml +++ b/doc/src/sgml/release-9.5.sgml @@ -162,6 +162,17 @@ </para> </listitem> + <listitem> + <para> + Allow <type>json</> and <type>jsonb</> extraction operators to + accept negative subscripts, which count from the end of JSON + arrays. Historically, these operators yielded <literal>NULL</> + in the event of a negative subscript, because negative + subscripts were considered invalid. (Peter Geoghegan, Andrew + Dunstan) + </para> + </listitem> + </itemizedlist> </sect2> -- GitLab