Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0tnm-0006Kf-1L for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2015 15:44:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z0tnk-0002s4-Sv for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2015 15:44:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z0tna-0002dd-PE; Fri, 05 Jun 2015 15:44:46 +0000 Received: from smtprelay0108.b.hostedemail.com ([64.98.42.108] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z0tnV-00056J-JL; Fri, 05 Jun 2015 15:44:45 +0000 Received: from filter.hostedemail.com (10.5.19.248.rfc1918.com [10.5.19.248]) by smtprelay02.b.hostedemail.com (Postfix) with ESMTP id A9641D3865; Fri, 5 Jun 2015 15:44:39 +0000 (UTC) X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Spam-Summary: 10, 1, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::::::::::::::::::::::, RULES_HIT:41:342:355:379:599:800:960:966:967:968:973:982:988:989:1260:1263:1277:1311:1312:1313:1314:1345:1359:1437:1515:1516:1518:1519:1534:1542:1593:1594:1595:1596:1711:1730:1747:1777:1792:2196:2199:2393:2525:2553:2560:2563:2682:2685:2693:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4385:4605:4659:5007:6119:6261:6690:6742:7903:9025:9121:10004:10400:10450:10455:10848:11026:11232:11256:11257:11658:11914:12043:12296:12517:12519:12660:13149:13161:13229:13230:13894:13895:14130:19904:19999:21080, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-HE-Tag: form73_b6ff100c891a X-Filterd-Recvd-Size: 4074 Received: from alvin.alvh.no-ip.org (unknown [200.85.199.239]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf04.b.hostedemail.com (Postfix) with ESMTPA; Fri, 5 Jun 2015 15:44:38 +0000 (UTC) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 973A6EBF; Fri, 5 Jun 2015 12:05:51 -0300 (CLT) Date: Fri, 5 Jun 2015 12:05:51 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Craig Ringer , Stephen Frost , Josh Berkus , Noah Misch , Bruce Momjian , Andres Freund , Robert Haas , Tom Lane , Magnus Hagander , "pgsql-hackers@postgresql.org" , pgsql-core Subject: Re: [CORE] Restore-reliability mode Message-ID: <20150605150551.GP133018@postgresql.org> References: <20150530154559.GA25053@momjian.us> <20150530204727.GJ13944@alap3.anarazel.de> <20150531024845.GB13697@momjian.us> <20150603135049.GA74753@tornado.leadboat.com> <556F3798.6010707@agliodbs.com> <20150604144317.GT26667@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.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 Michael Paquier wrote: > On Fri, Jun 5, 2015 at 8:53 AM, Craig Ringer wrote: > > In terms of specific testing improvements, things I think we need to have > > covered and runnable on the buildfarm are: > > > > * pg_dump and pg_restore testing (because it's scary we don't do this) > > We do test it in some way with pg_upgrade using set of objects that > are not removed by the regression test suite. Extension dumps are > uncovered yet though. We could put more emphasis on having objects of all kinds remain in the regression database, so that the pg_upgrade test covers more of this. What happened with the extension tests patches you submitted? They seemed valuable to me, but I lost track. > > * DDL deparse test coverage for all operations > > What do you have in mind except what is already in objectaddress.sql > and src/test/modules/test_dll_deparse/? The current SQL scripts in that test do not cover all possible object types, so there's a lot of the decoding capabilities that are currently not exercised. So one way to attack this would be to add more object types to those files. However, a completely different way is to have the test process serial_schedule from src/test/regress and run everything in there under deparse. That would be even more useful, because whenever some future DDL is added, we will automatically get coverage. > > How would a test that would've caught the multixact issues look? > > I have not followed closely those discussions, not sure about that. One issue with these bugs is that unless you use things such as pg_burn_multixact, producing large enough numbers of multixacts takes a long time. I've wondered if we could somehow make those easier to reproduce by lowering the range, and thus doing thousands of wraparounds, freezing and truncations in reasonable time. (For example, change the typedefs to uint16 rather than uint32). But then the issue becomes that the test code is not exactly equivalent to the production code, which could cause its own bugs. -- Á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