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 1lrsJb-00075R-BV for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Jun 2021 01:19:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrsJa-0000Va-0L for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Jun 2021 01:19:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrsJZ-0000VS-Mx for pgsql-hackers@lists.postgresql.org; Sat, 12 Jun 2021 01:19:57 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lrsJT-0006zv-86 for pgsql-hackers@lists.postgresql.org; Sat, 12 Jun 2021 01:19:56 +0000 Received: by mail-il1-x129.google.com with SMTP id h3so6802219ilc.9 for ; Fri, 11 Jun 2021 18:19:51 -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=UvT5O1c7jdTjxzcS9bsRb/3iROpZ3UZfh46uBzsRXBs=; b=P/2ZZAiZgVDDy+afY22G75qL13rr0ToMmAQgJQyesml5GLS64XSl5CrlM91BpBUWCe d0TEeAjnrnW+dqI+JvShEezANUK9nAe9FctDlpCSujaVwh/V513POIQZzWhE1zynq4Bl +wI64GuSAnrLuE7Mqcm9CQzRGAhaWZsXU/MmCc4lApw9OJZCUVX88uR25EqzFv+w3FC6 osxv74ZlzMM4PoZofnBa8FzzsZVCR6nGMhaExhaukLi4YWK0QEmJ9sIyVr3vt385CyEG njnB72yORnbcAr+vCVe7sDdyYpgDjwSzkUqpLUd9Q9x+6QaD/K6n1PU0IZRZGL8+TS4o MS2A== 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=UvT5O1c7jdTjxzcS9bsRb/3iROpZ3UZfh46uBzsRXBs=; b=IbC9vc30CdfmhIpS+M2LNj0nZ0xMIVi8zWKc0MGfdU5uRF1uF3OQqgKA0InR1LZzIq eG6oArMdYpIKUFndiPPFH4irk6uiXQbBlhBfFR6dFM5ayQduyrs2Y/FSPjKzq/A1yxj5 hdvOdA13V1aAvIleW5wBzueWw5eJRTUV8U9O8ZHsKN0609GnU1s1Np6h0QZXUia847Qk tocORpstnElyusdN3kZIr36l6vGOEEd+an9n8vb4oB0OcMKZ/i55B6MRW100aqcyk87N 9N4ttOCvMVpKhrEHUUETZ8LdSSKMW7RX8InYkN7xB8lmMPbrkcLIXYtDQuOm6PaIQ7iP 2J3A== X-Gm-Message-State: AOAM531JNUrEr+vRscFINQUkExCi+o0CXW41AB+qXt589RprrIDcI1kt bUkaPwwWrmI+GPkvGxBUI4EQC7cTisXSmQ== X-Google-Smtp-Source: ABdhPJwQqDiAIpMFIKJ155/H9uVQ/eGUfN4vWdUW7rsKxslP0tvYJ5X82Hm5Iv+tjUKWIfL0jfDkrg== X-Received: by 2002:a05:6e02:e0d:: with SMTP id a13mr4938470ilk.224.1623460790006; Fri, 11 Jun 2021 18:19:50 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d7sm3912520ilv.79.2021.06.11.18.19.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jun 2021 18:19:49 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 3832D800A36; Fri, 11 Jun 2021 20:19:48 -0500 (CDT) Date: Fri, 11 Jun 2021 20:19:48 -0500 From: Justin Pryzby To: Bruce Momjian Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests (v14 release notes) Message-ID: <20210612011948.GR16435@telsasoft.com> References: <20210609001000.GU16435@telsasoft.com> <20210612003244.GA8278@momjian.us> <2137765.1623459379@sss.pgh.pa.us> <20210612011255.GB8278@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210612011255.GB8278@momjian.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 Fri, Jun 11, 2021 at 09:12:55PM -0400, Bruce Momjian wrote: > OK, I used some of your ideas and tried for something more general; > patch attached. This is good. But I wonder if "dropped before upgrading" is too specific to pg_upgrade? Dropping the aggregate before starting a backup to be restored into a new version seems like a bad way to do it. More likely, I would restore whatever backup I had, get errors, and then eventually recreate the aggregates. > + > + User-defined objects that reference some built-in array functions > + along with their argument types must be recreated (Tom Lane) > + > + > + > + Specifically, + linkend="functions-array">array_append(), ... > + used to take anyarray arguments but now take > + anycompatiblearray. Therefore, user-defined objects > + that reference the old array function signature must be dropped > + before upgrading and recreated once the upgrade completes. > + > +