Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvwHg-0004vM-1j for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2017 01:32:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cvwHf-00010P-G8 for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Apr 2017 01:32:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cvwGA-0006oI-SL for pgsql-hackers@postgresql.org; Thu, 06 Apr 2017 01:30:51 +0000 Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cvwG3-0001oR-OT for pgsql-hackers@postgresql.org; Thu, 06 Apr 2017 01:30:49 +0000 Received: by mail-pg0-x22f.google.com with SMTP id 21so20613590pgg.1 for ; Wed, 05 Apr 2017 18:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=G4OAxdk0ahXYgQxRoqMxaDOjFDUtFCaHnXYbqw1e7A0=; b=PMC+4EBq24NpMOXzBnw862e5iUAjuIUsbvuhAN/AAmfGqA/Pcysk2ugf4wAQOs6suf BCmbSx/LlDqAjfKbY850/61A+JUAMk3k6gO8gzzQM9FSVMFyP6B0AWn/H3lLFgteQqZU FepchTmKXuqJEEQ4+Ly/K30dVEbDk+j6D5jXw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=G4OAxdk0ahXYgQxRoqMxaDOjFDUtFCaHnXYbqw1e7A0=; b=Q7lVcRWKSYKB/UlJHuc5czwMNbvx/dsy9o4rR2seMndKLMX/2AcjvnXMn2GhhvHi8n bNfnDiblgucgp8gJ11kR+Dz0TTgpsnOUC313JpA1hHYCC2zmIgJOuXIjDNCv4PnCYAnX 6BmBN/CeIVI/iWaWfg0T2XjQmXHQS1mqTMZ5QvXkf0HYCsScICslmRE9V0qe2/d2Alhc w+4f+FX42dn+dE8NF0X7BvQLP9V0aHdHM6L0va9zwafQ1Lt+rEHSo5BNlCaW5JPeMnXJ yt2IaOp874luQTrUO2ItBp1NgYSXlo49yRfFDGQb/T9eWL/sSCnjoAp8VK+sZCyMLcR3 OZ7Q== X-Gm-Message-State: AFeK/H1WDezoEYvMIp9g7tcLGgcLJi7SA8NISii/ShhxA/fFm5Gznb+DiiNNOrQbTEhqBg== X-Received: by 10.99.119.140 with SMTP id s134mr32999177pgc.162.1491442242175; Wed, 05 Apr 2017 18:30:42 -0700 (PDT) Received: from tornado.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id z185sm91465pfb.6.2017.04.05.18.30.39 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 05 Apr 2017 18:30:40 -0700 (PDT) Date: Wed, 5 Apr 2017 21:30:38 -0400 From: Noah Misch To: Stephen Frost Cc: Tom Lane , Michael Paquier , Peter Eisentraut , Andres Freund , PostgreSQL mailing lists Subject: Re: Rewriting the test of pg_upgrade as a TAP test Message-ID: <20170406013038.GA2731217@tornado.leadboat.com> References: <62a4e16e-5ea3-89c9-c94a-ee3be953b94a@2ndquadrant.com> <20170403153200.jqntjo7zat6x5rhh@alap3.anarazel.de> <42d412a2-9cd7-7ee1-0c1a-e8d230d568b0@2ndquadrant.com> <20170405135211.GZ9812@tamriel.snowman.net> <6679.1491401713@sss.pgh.pa.us> <20170405144041.GC9812@tamriel.snowman.net> <8402.1491404529@sss.pgh.pa.us> <20170405151333.GF9812@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170405151333.GF9812@tamriel.snowman.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) 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 Wed, Apr 05, 2017 at 11:13:33AM -0400, Stephen Frost wrote: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > > Stephen Frost writes: > > > I'm all for adding tests into pg_dump which do things like drop columns > > > and change column names and other cases which could impact if the > > > pg_dump is correct or not, and there's nothing preventing those tests > > > from being added in the existing structure. Certainly, before we remove > > > the coverage provided by running the serial test suite and then using > > > pg_upgrade, we should analyze what is being tested and ensure that we're > > > providing that same set of testing in the pg_dump TAP tests. > > > > I don't think you grasped my basic point, which is that I'm worried about > > emergent cases that we don't foresee needing to test (and that no amount > > of code coverage checking would have shown up as being overlooked). > > Admittedly, relying on the core regression tests to trigger such cases is > > a pretty haphazard strategy, but it's way better than no strategy at all. > > The tests that were added to the core regression suite were done so for > a reason and hopefully we can identify cases where it'd make sense to > also run those tests for pg_upgrade/pg_dump testing. I think you _are_ missing Tom's point. We've caught pg_dump and pg_upgrade bugs thanks to regression database objects created for purposes unrelated to pg_dump. It's true that there exist other test strategies that are more efficient or catch more bugs overall. None of them substitute 100% for the serendipity seen in testing dump/restore on the regression database. > More-or-less > anything that materially changes the catalog should be included, I would > think. Things that are only really only working with the heap/index > files don't really need to be performed because the pg_upgrade process > doesn't change those. That is formally true. Also, I agree with Andres that this is not a thread for discussing test changes beyond mechanical translation of the pg_upgrade test suite. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers