From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org
Cc: pgbf@twiska.com
Subject: Re: XversionUpgrade tests broken by postfix operator removal
Date: Fri, 18 Sep 2020 16:25:45 -0400
Message-ID: <540786.1600460745@sss.pgh.pa.us> (raw)
In-Reply-To: <3f62db16-29c0-4378-02ff-15677fbec2da@2ndQuadrant.com>
References: <449144.1600439950@sss.pgh.pa.us>
<3f62db16-29c0-4378-02ff-15677fbec2da@2ndQuadrant.com>
Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
> On 9/18/20 10:39 AM, Tom Lane wrote:
>> I intentionally let that happen, figuring that it'd be good to get some
>> buildfarm cycles on the new code in pg_upgrade that does this check.
>> But now we have to think about updating the test. I think the best
>> bet is just to add some DROP OPERATOR commands to the existing
>> cleanup logic in TestUpgradeXversion.pm. It looks like this would
>> do the trick:
>>
>> drop operator #@# (bigint,NONE);
>> drop operator #%# (bigint,NONE);
>> drop operator !=- (bigint,NONE);
>> drop operator #@%# (bigint,NONE);
> Almost. I had to remove one more operator.
Hmm, that's not a postfix operator ... oh, it's because it depends on the
numeric_fac function alias which we also removed. We could eliminate
the need to drop it if we changed the definition to use "factorial"
instead of "numeric_fac" in all the back branches. Not sure if that's
a better solution or not. Might be worth doing, because in the older
branches that's the only user-defined prefix operator, so we're missing
some pg_upgrade test coverage if we just drop it.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew.dunstan@2ndquadrant.com, pgbf@twiska.com
Subject: Re: XversionUpgrade tests broken by postfix operator removal
In-Reply-To: <540786.1600460745@sss.pgh.pa.us>
References: <449144.1600439950@sss.pgh.pa.us> <3f62db16-29c0-4378-02ff-15677fbec2da@2ndQuadrant.com> <540786.1600460745@sss.pgh.pa.us>
* 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