Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axe92-00074Q-Mt for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:30:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axe92-0006PI-9K for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:30:00 +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 1axe7h-0004gA-9T for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:28:37 +0000 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axe7d-00042e-Os for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:28:36 +0000 Received: from mfilter20-d.gandi.net (mfilter20-d.gandi.net [217.70.178.148]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 6661E41C08A; Tue, 3 May 2016 19:28:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter20-d.gandi.net Received: from relay5-d.mail.gandi.net ([IPv6:::ffff:217.70.183.197]) by mfilter20-d.gandi.net (mfilter20-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id rhgHv6TZDMV9; Tue, 3 May 2016 19:28:29 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2193441C093; Tue, 3 May 2016 19:28:27 +0200 (CEST) Subject: Re: ALTER TABLE lock downgrades have broken pg_upgrade To: Stephen Frost , Alvaro Herrera References: <8110.1462291671@sss.pgh.pa.us> <20160503170828.GA31385@alvherre.pgsql> <20160503172153.GO10850@tamriel.snowman.net> Cc: Tom Lane , pgsql-hackers@postgreSQL.org From: Andrew Dunstan Message-ID: <5728DFBA.40601@dunslane.net> Date: Tue, 3 May 2016 13:28:26 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20160503172153.GO10850@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 05/03/2016 01:21 PM, Stephen Frost wrote: > * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: >> Tom Lane wrote: >> >>> 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? >> 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... > I have an module that does it, although it's not really stable enough. But it's a big start. See cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers