pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix a few mistakes in partition aggregate tests
Date: Mon, 19 Oct 2026 21:36:06 +0000
Message-ID: <E1xIv1a-00000002Ipm-2l5I@gemulon.postgresql.org> (raw)

Fix a few mistakes in partition aggregate tests

The pattern seems to be to EXPLAIN the query to ensure we get the
expected partition-wise aggregate plan, then run the same query to check
the results are what we expect.  A couple of places didn't use the same
query between the EXPLAIN and the checking of the results, which
effectively voided the plan check.

Additionally, a comment claimed array_agg() didn't support partial mode,
but that was made not true in 16fd03e95.

Author: Matthias van de Meent <boekewurm@gmail.com>
Reviewed-by: Pierre Forstmann <pierre.forstmann@gmail.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/CAEze2WgjJUiqV-VZVrWqYz+ETLtd4oKk2gbvBWxf1Fo0is5XVQ@mail.gmail.com
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/60614e596ae9c5d222b5fe1efa95817b382722f8

Modified Files
--------------
src/test/regress/expected/partition_aggregate.out | 14 ++++++++------
src/test/regress/sql/partition_aggregate.sql      |  8 ++++----
2 files changed, 12 insertions(+), 10 deletions(-)



view thread (7+ messages)

Message-ID: <E1xIv1a-00000002Ipm-2l5I@gemulon.postgresql.org>
Permalink:  ../E1xIv1a-00000002Ipm-2l5I@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xIv1a-00000002Ipm-2l5I@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: drowley@postgresql.org
  Subject: Re: pgsql: Fix a few mistakes in partition aggregate tests
  In-Reply-To: <E1xIv1a-00000002Ipm-2l5I@gemulon.postgresql.org>
  References: <E1xIv1a-00000002Ipm-2l5I@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