Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axe8r-00073k-4S for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:29:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axe8q-0005zt-NO for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:29:48 +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 1axe8p-0005yd-TK for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:29:47 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axe8m-00042p-OM for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:29:47 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 320525F7A4; Tue, 3 May 2016 13:29:44 -0400 (EDT) Date: Tue, 3 May 2016 13:29:44 -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: <20160503172944.GP10850@tamriel.snowman.net> References: <20160503172153.GO10850@tamriel.snowman.net> <20160503172541.GA31942@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="epEl0LUCsqnfJwGc" Content-Disposition: inline In-Reply-To: <20160503172541.GA31942@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:26:30 up 70 days, 14:19, 22 users, load average: 0.27, 0.25, 0.21 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 --epEl0LUCsqnfJwGc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > Stephen Frost wrote: > > * 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 lat= est > > > stable and to master -- together with your proposed case that leaves a > > > toastless table around for pg_upgrade to handle. > >=20 > > 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... >=20 > If we can put together a script that runs test.sh for various versions > and then verifies the runs, we could use it in both buildfarm and > coverage. One other point is that pg_dump goes quite a bit farther back than just what we currently support (or at least, it tries to). I think that, generally, that's a good thing, but it does mean we have a lot of cases that don't get tested nearly as much... I was able to get back to 7.4 up and running without too much trouble, but even that doesn't cover all the cases we have in pg_dump. I'm not sure if we want to define a "we will support pg_dump back to X" cut-off or if we want to try and get older versions to run on modern systems, but it's definitely worth pointing out that we're trying to support much farther back than what is currently supported in pg_dump today. Thanks! Stephen --epEl0LUCsqnfJwGc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXKOAHAAoJEO1sijiDR2RV41sP/3lNWriXJDRlIwaKzva5ol9S RQoB1anFaydwEi77+Q0EvJRWzV0RQPkz8Lp7vSspBAG9SMJSAkuDl9otZkqaBY7Q OubGmc7imZBVhz8IqtMu1y5XSDsYzlY0YQT46g7JpV+cks5ststYUFZPmIrhX+sD /oCDalFwDBiup4PTOUhWrmrYx+70DxwP8SnnofhyZpwjWmvrh95k0XL7VrERecI/ uGJojTceYz08iL8mTWgTZrGs5F5Mjs3oQnVotelTw0b8pL/4B0hb0YirgKdHvzFw i12YmXOwXDvuwsAWLwgTsOIJEj3Z+ECyqxWg3tbWctTkGGwYMTgcW6TXfJ7dwSD5 c2AMgQW60I5ZDKbIgojiy9G+GRfPmnu4YErH/vgAaVXcbuMOEn4jzKCnV/R5jk22 ELsa3jK9swUDPNUGEuZMaBMwP1hcdadJvZdPNOVv/Jq1mDf1TiLb5Olo7EqOftEX ufLjzBw+kqM/Q/U2+uAQtwk8wvewJ93jaC0ducD+Fby2EC8k3je5KTuvhkuh0+9E w45JffP5EK8EK2bdADZsKbxSjfuXJ7d1pFFnGXBovamZZNB772/6PTRrBzYO3TR9 ZodOI0GY5bpe9jHDzcftDDAR4MUmgWNjQwJveHp30ykWUPbM949TkjLBSAssBJja ngNkY+b2Rc5XpEEDsw0+ =S0nJ -----END PGP SIGNATURE----- --epEl0LUCsqnfJwGc--