pgsql: Rely on plan_cache_mode to force generic plans in partition_prun

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rely on plan_cache_mode to force generic plans in partition_prun
Date: 2019-09-30 21:14:13
Message-ID: E1iF2zl-0006Wm-TB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rely on plan_cache_mode to force generic plans in partition_prune test.

This file had a very weird mix of tests that did "set plan_cache_mode =
force_generic_plan" to get a generic plan, and tests that relied on
using five dummy executions of a prepared statement. Converting them
all to rely on plan_cache_mode is more consistent and shaves off a
noticeable fraction of the test script's runtime.

Discussion: https://postgr.es/m/11952.1569536725@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d52eaa094847d395f942827a6f413904e516994c

Modified Files
--------------
src/test/regress/expected/partition_prune.out | 295 +-------------------------
src/test/regress/sql/partition_prune.sql | 82 +------
2 files changed, 6 insertions(+), 371 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2019-09-30 21:38:14 Re: pgsql: Add libpq parameter 'channel_binding'.
Previous Message Tom Lane 2019-09-30 20:07:54 pgsql: Stamp 12.0.