Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mW5qj-0003EU-Jw for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Sep 2021 23:52:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mW5qi-0002zA-Jr for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Sep 2021 23:52:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mW5qi-0002z1-DT for pgsql-bugs@lists.postgresql.org; Thu, 30 Sep 2021 23:52:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mW5qf-0002NM-NX for pgsql-bugs@lists.postgresql.org; Thu, 30 Sep 2021 23:52:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 18UNqH6B3266665; Thu, 30 Sep 2021 19:52:17 -0400 From: Tom Lane To: "David G. Johnston" cc: edouard.hibon@free.fr, PostgreSQL mailing lists Subject: Re: BUG #17206: the function array_cat(anyarray, anyarray) does not exist In-reply-to: References: <17206-f0a6b77a0a7b8499@postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Thu, 30 Sep 2021 15:49:03 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3266663.1633045937.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 30 Sep 2021 19:52:17 -0400 Message-ID: <3266664.1633045937@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Thu, Sep 30, 2021 at 2:51 PM PG Bug reporting form < > noreply@postgresql.org> wrote: >> I get the ERROR : the function array_cat(anyarray, anyarray) does not >> exist, > You may find this commit to be illuminating. Work was done in this area > for v14. > https://github.com/postgres/postgres/commit/97f73a978fc1aca59c6ad765548c= e0096d95a923 This one might be more so: https://git.postgresql.org/gitweb/?p=3Dpostgresql.git&a=3Dcommitdiff&h=3D9= e38c2bb50 Also see the very first item in the v14 compatibility notes: User-defined objects that reference certain built-in array functions along with their argument types must be recreated (Tom Lane) Specifically, array_append(), array_prepend(), array_cat(), array_position(), array_positions(), array_remove(), array_replace(), and width_bucket() used to take anyarray arguments but now take anycompatiblearray. Therefore, user-defined objects like aggregates and operators that reference those array function signatures must be dropped before upgrading, and recreated once the upgrade completes. regards, tom lane