From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: zhangh3@aetna.com
Subject: BUG #16344: json_agg slow performance vs jsonb_agg, truncate table for master table with remote partition
Date: Sun, 05 Apr 2020 21:08:08 +0000
Message-ID: <16344-edc88bfde0736876@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16344
Logged by: Hongyan (Heather) Zhang
Email address: zhangh3@aetna.com
PostgreSQL version: 12.2
Operating system: PostgreSQL 12.0 on x86_64-pc-linux-gnu, compiled
Description:
json_agg vs jsonb_agg for a partitioned table, I found json_agg
siginificantly slow (6 secs) as jsonb (2mins)
create table aggtab as select id, json_agg(col) from tab group by id
truncate table <master table of 2 partitions, 1 local, another remote>
error: <remote table> is not a table
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-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, zhangh3@aetna.com
Subject: Re: BUG #16344: json_agg slow performance vs jsonb_agg, truncate table for master table with remote partition
In-Reply-To: <16344-edc88bfde0736876@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