Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axe6M-0006xv-Q1 for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:27:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axe6M-0004Yp-2E for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:27:14 +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 1axe51-00031X-O0 for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:25:51 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1axe4w-00040z-71 for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:25:51 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 45DDE4005CA; Tue, 3 May 2016 10:25:43 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 662BF438; Tue, 3 May 2016 14:25:41 -0300 (CLST) Date: Tue, 3 May 2016 14:25:41 -0300 From: Alvaro Herrera To: Stephen Frost Cc: Tom Lane , pgsql-hackers@postgreSQL.org Subject: Re: ALTER TABLE lock downgrades have broken pg_upgrade Message-ID: <20160503172541.GA31942@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160503172153.GO10850@tamriel.snowman.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 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... 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. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers