pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-hackers@lists.postgresql.org, Bruce Momjian <bruce@momjian.us>
Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests
Date: Fri, 24 Jun 2022 10:06:53 -0400
Message-ID: <347233.1656079613@sss.pgh.pa.us> (raw)
In-Reply-To: <20220624133052.GD22452@telsasoft.com>
References: <1401824.1604537031@sss.pgh.pa.us>
	<20210520232922.GG3676@telsasoft.com>
	<3849235.1621553710@sss.pgh.pa.us>
	<20210525161458.GZ3676@telsasoft.com>
	<CB500650-3F3C-45A5-A06C-96621364AF7E@yandex-team.ru>
	<20220624133052.GD22452@telsasoft.com>

Justin Pryzby <pryzby@telsasoft.com> writes:
> I realized that my latest patch would break upgrades from old servers, which do
> not have array_position/s nor width_bucket, so ::reprocedure would fail.  Maybe
> Andrey's way is better (checking proname rather than its OID).

proname is dangerous, because there's nothing stopping users from
adding more functions with the same name.

Just use a server-version-dependent list of regprocedure OIDs.

			regards, tom lane





view thread (21+ messages)  latest in thread

Message-ID: <347233.1656079613@sss.pgh.pa.us>
Permalink:  ../347233.1656079613@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/347233.1656079613@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pryzby@telsasoft.com, x4mmm@yandex-team.ru, andrew@dunslane.net, bruce@momjian.us
  Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests
  In-Reply-To: <347233.1656079613@sss.pgh.pa.us>
  References: <1401824.1604537031@sss.pgh.pa.us> <20210520232922.GG3676@telsasoft.com> <3849235.1621553710@sss.pgh.pa.us> <20210525161458.GZ3676@telsasoft.com> <CB500650-3F3C-45A5-A06C-96621364AF7E@yandex-team.ru> <20220624133052.GD22452@telsasoft.com> <347233.1656079613@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