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: Fix plpgsql tests for debug_invalidate_system_caches_always.
Date: Fri, 08 Jan 2021 23:12:15 +0000
Message-ID: <E1ky0vX-000568-UP@gemulon.postgresql.org> (raw)

Fix plpgsql tests for debug_invalidate_system_caches_always.

Commit c9d529848 resulted in having a couple more places where
the error context stack for a failure varies depending on
debug_invalidate_system_caches_always (nee CLOBBER_CACHE_ALWAYS).
This is not very surprising, since we have to re-parse cached
plans if the plan cache is clobbered.  Stabilize the expected
test output by hiding the context stack in these places,
as we've done elsewhere in this test script.

(Another idea worth considering, now that we have
debug_invalidate_system_caches_always, is to force it to zero for
these test cases.  That seems like it'd risk reducing the coverage
of cache-clobber testing, which might or might not be worth being
able to verify that we get the expected error output in normal
cases.  For the moment I just stuck with the existing technique.)

In passing, update comments that referred to CLOBBER_CACHE_ALWAYS.

Per buildfarm member hyrax.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/39d4a153105f0693d93f593a23e5144e2bd031ef

Modified Files
--------------
src/pl/plpgsql/src/expected/plpgsql_cache.out   |  8 ++++----
src/pl/plpgsql/src/expected/plpgsql_cache_1.out |  8 ++++----
src/pl/plpgsql/src/expected/plpgsql_record.out  | 18 ++++++++++++------
src/pl/plpgsql/src/sql/plpgsql_cache.sql        |  8 ++++----
src/pl/plpgsql/src/sql/plpgsql_record.sql       | 16 ++++++++++++----
5 files changed, 36 insertions(+), 22 deletions(-)



Message-ID: <E1ky0vX-000568-UP@gemulon.postgresql.org>
Permalink:  ../E1ky0vX-000568-UP@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ky0vX-000568-UP@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix plpgsql tests for debug_invalidate_system_caches_always.
  In-Reply-To: <E1ky0vX-000568-UP@gemulon.postgresql.org>
  References: <E1ky0vX-000568-UP@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