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 1ljs6d-0002rW-1k for pgsql-hackers@arkaria.postgresql.org; Thu, 20 May 2021 23:29:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ljs6b-0008Nn-U4 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 May 2021 23:29:29 +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 1ljs6b-0008Mk-Iq for pgsql-hackers@lists.postgresql.org; Thu, 20 May 2021 23:29:29 +0000 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ljs6Z-0003X2-8g for pgsql-hackers@lists.postgresql.org; Thu, 20 May 2021 23:29:29 +0000 Received: by mail-oo1-xc2b.google.com with SMTP id t22-20020a4ad0b60000b029020fe239e804so1371344oor.4 for ; Thu, 20 May 2021 16:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=n24dKgRsttqer8rBpLz9XJ9t2A5NGGq+G0mJa5mYGR4=; b=mKjEjxMTrEozRawRWajlb6C7TFoJ443auTrVs9C7dk/Q33b+xnmSO4KnKTR89IFp5S +bInLFtVT5qJfjIvjPQOJL0wJSHJprojYOY2/3Yi0iaJ/+jE10md3DFfJe9EytHOMrDv TvtGb01lz9EBMh1v2hlRn/LhK8L+1EmJLv+RxddffaMgwl/vPQSQhcae6Sw+iYdqeS4M khcSdtkLIPmktNb7mN7Y8DMi4G+xEXY+5YHqIYcuW6RPoeLjsWmYelSzBP1kEAkzxver cHhoNjrjNDFQOy5wNVEyunceEIPJ4PDTWyxKj+Ry3S4eOimnyRV48VuDKvKY/JK9pP3N KY5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=n24dKgRsttqer8rBpLz9XJ9t2A5NGGq+G0mJa5mYGR4=; b=g8Pr011JLov/wlOcfbDF1Z4DpUHoWQxaRkLVDV0r2mHouazNFx8ZSGVrNIIrDR/SHW zcYiziXW0w5mVQtU2Sitth9wrwYAt+wUJ9VA/9sRabMLarhFDYXkDOUAMJz0d//ar9Tk reH7viiFySZAcvYDxUDpPjRjI52+ZrohRde+duLpFkMlQvwPT/YxhuqD9E5N0p+sGsOl YNJaeva+jBZLnM8btLccs4zge6aOydrSXOqqeVd2y4R8GGKbpddwyK6/rxhJJlZ4LH4t p/8iIB7RgX9fhZl0UEEj/nqxmdfVX88Sr9AD+1srUvAGdHaJITOrCaqJSLZIv6EDoMQw y+dg== X-Gm-Message-State: AOAM5314pf/zwt52DNoYvEaWnyYGCbbByHfqSspKd4l/R96bdTagBGeJ 5qbwcVpXQDyyvPTBCet6t2O4iQ== X-Google-Smtp-Source: ABdhPJz4SI1khohqJSSkmiyAYrhal5lvYoGOclj1xaHFyqc9sQBslNTLCTIESEiBWs3vAsks/ZxZZg== X-Received: by 2002:a4a:250e:: with SMTP id g14mr5602101ooa.31.1621553364729; Thu, 20 May 2021 16:29:24 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id e11sm875042ook.20.2021.05.20.16.29.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 May 2021 16:29:24 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 07F688008E0; Thu, 20 May 2021 18:29:22 -0500 (CDT) Date: Thu, 20 May 2021 18:29:22 -0500 From: Justin Pryzby To: Tom Lane Cc: Andrew Dunstan , pgsql-hackers@lists.postgresql.org, Bruce Momjian Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests Message-ID: <20210520232922.GG3676@telsasoft.com> References: <1401824.1604537031@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1401824.1604537031@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Nov 04, 2020 at 07:43:51PM -0500, Tom Lane wrote: > crake is showing xversion upgrade failures since 9e38c2bb50: > > pg_restore: error: could not execute query: ERROR: function array_cat(anyarray, anyarray) does not exist > Command was: CREATE AGGREGATE "public"."array_cat_accum"("anyarray") ( > SFUNC = "array_cat", > STYPE = "anyarray", > INITCOND = '{}' > ); > > As was discussed in the thread leading up to that commit, modifying the > signature of array_cat and friends could break user-defined operators > and aggregates based on those functions. It seems to me that the > usability gain from this change is worth that cost, but it is causing > an issue for xversion tests. I upgraded an internal DB to v14b1, but it took several tries, since there were errors during pg_restore regarding aggregates using polymorphic functions anyarray, which are now anycompatiblearray. I succeeded in upgrading after dropping our aggregates. I have a backup from the v13 DB, and it restores okay on v13. However it fails with the same errors when restoring into v14. I think this was all known, so I'm just adding a data point. It's be easy enough to replace our "anyarrays" with "anycompatiblearrays". But I think this should be called out as an incompatible change in the release notes. pg_restore: error: could not execute query: ERROR: function array_append(anyarray, anyelement) does not exist Command was: CREATE AGGREGATE public.array_accum(anyelement) ( SFUNC = array_append, STYPE = anyarray, INITCOND = '{}', PARALLEL = safe ); pg_restore: error: could not execute query: ERROR: function array_append(anyarray, anyelement) does not exist Command was: CREATE AGGREGATE public.pdp_context_count(anyelement) ( SFUNC = array_append, STYPE = anyarray, INITCOND = '{}', FINALFUNC = public._final_pdp_context_count, PARALLEL = safe ); pg_restore: error: could not execute query: ERROR: function array_append(anyarray, anyelement) does not exist Command was: CREATE AGGREGATE public.ts_mode(anyelement) ( SFUNC = array_append, STYPE = anyarray, INITCOND = '{}', FINALFUNC = public._final_mode ); -- Justin