Re: array_cat anycompatible change is breaking xversion upgrade tests - Mailing list pgsql-hackers

From Tom Lane
Subject Re: array_cat anycompatible change is breaking xversion upgrade tests
Date
Msg-id 347233.1656079613@sss.pgh.pa.us
Whole thread Raw
In response to array_cat anycompatible change is breaking xversion upgrade tests  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: array_cat anycompatible change is breaking xversion upgrade tests
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Leif Harald Karlsen
Date:
Subject: Implement hook for self-join simplification
Next
From: Tom Lane
Date:
Subject: Re: NAMEDATALEN increase because of non-latin languages