Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axe2a-0006eN-Gp for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:23:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axe2a-0002rv-3I for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:23:20 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axe1F-0001LK-Fc for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:21:57 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axe1C-0003un-5J for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:21:56 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 542AC5F7A4; Tue, 3 May 2016 13:21:53 -0400 (EDT) Date: Tue, 3 May 2016 13:21:53 -0400 From: Stephen Frost To: Alvaro Herrera Cc: Tom Lane , pgsql-hackers@postgreSQL.org Subject: Re: ALTER TABLE lock downgrades have broken pg_upgrade Message-ID: <20160503172153.GO10850@tamriel.snowman.net> References: <8110.1462291671@sss.pgh.pa.us> <20160503170828.GA31385@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qXU8/t18czRAfzpv" Content-Disposition: inline In-Reply-To: <20160503170828.GA31385@alvherre.pgsql> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 13:21:07 up 70 days, 14:14, 22 users, load average: 0.32, 0.27, 0.20 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --qXU8/t18czRAfzpv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > Tom Lane wrote: >=20 > > More generally, though, I wonder how we can have some test coverage > > on such cases going forward. Is the patch below too ugly to commit > > permanently, and if so, what other idea can you suggest? >=20 > I suggest a buildfarm animal running a custom buildfarm module that > exercises the pg_upgrade test from every supported version to the latest > stable and to master -- together with your proposed case that leaves a > toastless table around for pg_upgrade to handle. That would help greatly with pg_dump test coverage as well.. One of the problems of trying to get good LOC coverage of pg_dump is that a *lot* of the code is version-specific... Thanks! Stephen --qXU8/t18czRAfzpv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXKN4wAAoJEO1sijiDR2RVDg4QAK+CzNz+cm33db0yAIU3txwu GjPNke/q5geKLtuhE3wJXkO5WIteRHhy9vA/sivr/GEwfIsnfiNdZAn1oj0+s+1p 8DdgKXaP73e/1H5uqQPN2xUN4qJsgBTXCKXGcqIdzPcRaDRCRWTls8k2Zf/Rbyqc FlvEpfMqVQn9oYqPF4RKnDPE4YsyWZhNQB/dXfFsdI400baw1su19xOq+g9KTr9r +5EFQ/Q+vv6QCeHp5KB8cn9hyOKaJXf8+jqfggcAz/WRNjPkBEd5+2BYNFIuKAAa DUNpzQHZ0Fal6fYdgU3TdaTrXMyRbTC60wSk02kfl+i/azwyNsX2iyccGJPuvf74 PjtRBSynw27a+OtJTcxoO75U2yn1SOzuJMIuf7YRpkmXcMy1gnt1b3J8RKZZMreY AL6KMjaYRS7LfjggYB8XNoaf1NYVDrTBmgvJ17fDF58bU9CB0adWTGGR8iwWPZqT wphy3zlcuyZKvcftLRInJwbxva21TpPLckrNdgmjmaZQArQpYJJEUfLVfHmtb/l6 2oyWuT4zhbLb8TxNvRmjTDHNtWv9MwuXbJyuPe/ZUvZk4aKmTq0bW82aaVBezbPC jl7jZ+GMNH5L5LGWWGuU7dyYe1xplh84W7m03GsFFsbN3lqK2GZnKLBh3I39B1bH uM42naF3ECul0xpNNlSV =F5Iq -----END PGP SIGNATURE----- --qXU8/t18czRAfzpv--