pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make stats_ext test faster under cache-clobbering test condition
Date: Wed, 03 Dec 2025 18:23:57 +0000
Message-ID: <E1vQrW8-002dKl-1g@gemulon.postgresql.org> (raw)

Make stats_ext test faster under cache-clobbering test conditions.

Commit 1eccb9315 added a test case that will cause a large number
of evaluations of a plpgsql function.  With -DCLOBBER_CACHE_ALWAYS,
that takes an unreasonable amount of time (hours) because the
function's cache entries are repeatedly deleted and rebuilt.
That doesn't add any useful test coverage --- other test cases
already exercise plpgsql well enough --- and it's not part of what
this test intended to cover.  We can get the same planner coverage,
if not more, by making the test directly invoke numeric_lt().

Reported-by: Tomas Vondra <tomas@vondra.me>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/baf1ae02-83bd-4f5d-872a-1d04f11a9073@vondra.me

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d61228717e619b90b8ebd1d219d006b920e00e5

Modified Files
--------------
src/test/regress/expected/stats_ext.out | 10 +++-------
src/test/regress/sql/stats_ext.sql      | 11 +++--------
2 files changed, 6 insertions(+), 15 deletions(-)



Message-ID: <E1vQrW8-002dKl-1g@gemulon.postgresql.org>
Permalink:  ../E1vQrW8-002dKl-1g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQrW8-002dKl-1g@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: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Make stats_ext test faster under cache-clobbering test condition
  In-Reply-To: <E1vQrW8-002dKl-1g@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