From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: mihirpmehta@gmail.com
Subject: filter with json_agg(DISTINCT table.*) behaves differently
Date: Wed, 22 Apr 2020 10:11:22 +0000
Message-ID: <158755028255.635.4092609317677999644@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/10/release-10-7.html
Description:
Following is our finding:
Postgres query behaves differently in 2 version
Specifically
(json_agg(DISTINCT table_name.*) filter(where table_name is not null)) as
table,
.
.
.
gives null record in 10.7 where it gives proper data in 10.6
Following is the version difference of postgres
WORKING - PostgreSQL 10.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC)
4.8.3 20140911 (Red Hat 4.8.3-9), 64-bit
NOT WORKING - PostgreSQL 10.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC)
4.9.3, 64-bit
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, mihirpmehta@gmail.com
Subject: Re: filter with json_agg(DISTINCT table.*) behaves differently
In-Reply-To: <158755028255.635.4092609317677999644@wrigleys.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