pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Guo <rguo@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix unstable test in select_parallel.sql
Date: Mon, 22 Jul 2024 02:30:29 +0000
Message-ID: <E1sVion-000div-U2@gemulon.postgresql.org> (raw)

Fix unstable test in select_parallel.sql

One test case added in 22d946b0f verifies the plan of a non-parallel
nestloop join.  The planner's choice of join order is arbitrary, and
slight variations in underlying statistics could result in a different
displayed plan.  To stabilize the test result, here we enforce the
join order using a lateral join.

While here, modify the test case to verify that parallel nestloop join
is not generated if the inner path is not parallel-safe, which is what
we wanted to test in 22d946b0f.

Reported-by: Alexander Lakhin as per buildfarm
Author: Richard Guo
Discussion: https://postgr.es/m/7c09a439-e48d-5460-cfa0-a371b1a57066@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7e187a7386cc922c8f770c0460bfc43f4806bd15

Modified Files
--------------
src/test/regress/expected/select_parallel.out | 17 +++++++++++------
src/test/regress/sql/select_parallel.sql      | 11 ++++++++---
2 files changed, 19 insertions(+), 9 deletions(-)



Message-ID: <E1sVion-000div-U2@gemulon.postgresql.org>
Permalink:  ../E1sVion-000div-U2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sVion-000div-U2@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: rguo@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix unstable test in select_parallel.sql
  In-Reply-To: <E1sVion-000div-U2@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