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: Solve cross-version-upgrade testing problem induced by 1fb57af92
Date: Sun, 10 Feb 2019 02:02:26 +0000
Message-ID: <E1gseRu-0007kN-SD@gemulon.postgresql.org> (raw)

Solve cross-version-upgrade testing problem induced by 1fb57af92.

Renaming varchar_transform to varchar_support had a side effect
I hadn't foreseen: the core regression tests leave around a
transform object that relies on that function, so the name
change breaks cross-version upgrade tests, because the name
used in the older branches doesn't match.

Since the dependency on varchar_transform was chosen with the
aid of a dartboard anyway (it would surely not work as a
language transform support function), fix by just choosing
a different random builtin function with the right signature.
Also add some comments explaining why this isn't horribly unsafe.

I chose to make the same substitution in a couple of other
copied-and-pasted test cases, for consistency, though those
aren't directly contributing to the testing problem.

Per buildfarm.  Back-patch, else it doesn't fix the problem.

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/bin/pg_dump/t/002_pg_dump.pl                                | 4 ++--
src/test/modules/test_ddl_deparse/expected/create_transform.out | 6 ++++--
src/test/modules/test_ddl_deparse/sql/create_transform.sql      | 6 ++++--
src/test/regress/expected/object_address.out                    | 4 +++-
src/test/regress/sql/object_address.sql                         | 4 +++-
5 files changed, 16 insertions(+), 8 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1gseRu-0007kN-SD@gemulon.postgresql.org>
Permalink:  ../E1gseRu-0007kN-SD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gseRu-0007kN-SD@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: Solve cross-version-upgrade testing problem induced by 1fb57af92
  In-Reply-To: <E1gseRu-0007kN-SD@gemulon.postgresql.org>
  References: <E1gseRu-0007kN-SD@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