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 1kcEjZ-00010i-Oi for pgsql-committers@arkaria.postgresql.org; Mon, 09 Nov 2020 21:29:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kcEjY-0002lV-F4 for pgsql-committers@arkaria.postgresql.org; Mon, 09 Nov 2020 21:29:52 +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 1kcEjY-0002lO-9k for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2020 21:29:52 +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 1kcEjV-0005ur-EN for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2020 21:29:51 +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 0A9LTkWd1999749; Mon, 9 Nov 2020 16:29:46 -0500 From: Tom Lane To: Andrew Dunstan cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Declare assorted array functions using anycompatible not anyelem In-reply-to: References: Comments: In-reply-to Andrew Dunstan message dated "Mon, 09 Nov 2020 16:23:24 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1999747.1604957386.1@sss.pgh.pa.us> Date: Mon, 09 Nov 2020 16:29:46 -0500 Message-ID: <1999748.1604957386@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On 11/4/20 4:10 PM, Tom Lane wrote: >> Declare assorted array functions using anycompatible not anyelement. > This patch broke cross-version pg_upgrade testing. Uh, yeah ... didn't you get my two prior messages about that? > I have cured crake > for the moment by having it execute this in the source database: I think probably the right fix is just to change that test case to use a different implementation function, per [1]. I'm holding off pushing the fix till after this week's wraps, though. > But I wonder if we really want to make it impossible to upgrade > databases with aggregates that contain these functions? If I thought that user-defined aggregates relying on array_cat were really a thing (and not just a test case), I'd be more concerned about this. But it's hard to see why users shouldn't use array_agg() instead of rolling their own. regards, tom lane [1] https://www.postgresql.org/message-id/1915573.1604879242%40sss.pgh.pa.us