Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTuP9-0005li-9z for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Nov 2019 21:05:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iTuP8-0005Lm-3h for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Nov 2019 21:05:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTuP7-0005Lf-RJ for pgsql-hackers@lists.postgresql.org; Sun, 10 Nov 2019 21:05:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iTuP5-0002Jh-MG for pgsql-hackers@lists.postgresql.org; Sun, 10 Nov 2019 21:05:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xAAL5hUN004651; Sun, 10 Nov 2019 16:05:43 -0500 From: Tom Lane To: Daniel Gustafsson cc: PostgreSQL Hackers , Tomas Vondra Subject: Re: pg_upgrade fails to detect unsupported arrays and ranges In-reply-to: <124042D9-F307-402A-80ED-395C154858BA@yesql.se> References: <31473.1573412838@sss.pgh.pa.us> <124042D9-F307-402A-80ED-395C154858BA@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Sun, 10 Nov 2019 22:01:21 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4649.1573419943.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 10 Nov 2019 16:05:43 -0500 Message-ID: <4650.1573419943@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Daniel Gustafsson writes: > On 10 Nov 2019, at 20:07, Tom Lane wrote: >> Although this is a really straightforward patch and I've tested it >> against appropriate old versions (9.1 and 9.2), I'm very hesitant >> to shove it in so soon before a release wrap. Should I do that, or >> let it wait till after the wrap? > Having read the patch I agree that it's trivial enough that I wouldn't b= e > worried to let it slip through. However, given that we've lacked the ch= eck for > a few releases, is it worth rushing with the potential for a last-minute > "oh-shit"? Probably not, really --- the main argument for that is just that it'd fit well with the fixes Tomas already made. >> + /* arrays over any type selected so far */ >> + " SELECT t.oid FROM pg_catalog.pg_type t, x WHERE typelem =3D= x.oid AND typtype =3D 'b' " > No need to check typlen? Yeah, that's intentional. A fixed-length array type over a problematic type would be just as much of a problem as a varlena array type. The case shouldn't apply to any of the existing problematic types, but I was striving for generality. regards, tom lane