Re: BUG #17206: the function array_cat(anyarray, anyarray) does not exist

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: edouard(dot)hibon(at)free(dot)fr, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17206: the function array_cat(anyarray, anyarray) does not exist
Date: 2021-09-30 23:52:17
Message-ID: 3266664.1633045937@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Thu, Sep 30, 2021 at 2:51 PM PG Bug reporting form <
> noreply(at)postgresql(dot)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/97f73a978fc1aca59c6ad765548ce0096d95a923

This one might be more so:

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=9e38c2bb50

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Budi Setiawan 2021-10-01 00:39:24 Re: BUG #17203: missing websearch_to_tsquery
Previous Message PG Bug reporting form 2021-09-30 23:29:48 BUG #17207: Bad cost estimate of Merge Join despite correct row estimate