pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix JSON_OBJECTAGG uniquefying bug
Date: Thu, 28 Apr 2022 19:34:41 +0000
Message-ID: <E1nk9uS-001am0-LF@gemulon.postgresql.org> (raw)

Fix JSON_OBJECTAGG uniquefying bug

Commit f4fb45d15c contained a bug in removing items with null values when
unique keys are required, where the leading items that are sorted
contained such values. Fix that and add a test for it.

Discussion: https://postgr.es/m/CAJA4AWQ_XbSmsNbW226UqNyRLJ+wb=iQkQMj77cQyoNkqtf=2Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9c3d25e17894f35045a2d57dfb834e25c9dc4c21

Modified Files
--------------
src/backend/utils/adt/jsonb_util.c    | 14 ++++++++++++--
src/test/regress/expected/sqljson.out |  7 +++++++
src/test/regress/sql/sqljson.sql      |  3 +++
3 files changed, 22 insertions(+), 2 deletions(-)



Message-ID: <E1nk9uS-001am0-LF@gemulon.postgresql.org>
Permalink:  ../E1nk9uS-001am0-LF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nk9uS-001am0-LF@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: Fix JSON_OBJECTAGG uniquefying bug
  In-Reply-To: <E1nk9uS-001am0-LF@gemulon.postgresql.org>
  References: <E1nk9uS-001am0-LF@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox