Fix JSON_OBJECTAGG uniquefying bug

Andrew Dunstan <andrew@dunslane.net>

Commit: 9c3d25e17894f35045a2d57dfb834e25c9dc4c21
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2022-04-28T19:28:20Z
Releases: 15.0
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

Files

Discussion