PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16344
PG Version12.2
OSPostgreSQL 12.0 on x86_64-pc-linux-gnu, compiled
Opened2020-04-05 21:08:08+00
Reported byHongyan (Heather) Zhang

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16344
Logged by:          Hongyan (Heather) Zhang
Email address:      (redacted)
PostgreSQL version: 12.2
Operating system:   PostgreSQL 12.0 on x86_64-pc-linux-gnu, compiled

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


2020-04-05 21:08:08+00PG Bug reporting formBUG #16344: json_agg slow performance vs jsonb_agg, truncate table for master table with remote partition