Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2bGL-0000ny-Hu for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2015 08:21:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z2bGL-0006eM-1U for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2015 08:21:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z2bGJ-0006e4-I5; Wed, 10 Jun 2015 08:21:27 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z2bGH-0008Lw-1u; Wed, 10 Jun 2015 08:21:26 +0000 Received: from intern.anarazel.de (p5DDC715D.dip0.t-ipconnect.de [93.220.113.93]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 94A7D860002; Wed, 10 Jun 2015 10:21:23 +0200 (CEST) Date: Wed, 10 Jun 2015 10:21:22 +0200 From: Andres Freund To: Noah Misch Cc: Bruce Momjian , Robert Haas , Tom Lane , Stephen Frost , Magnus Hagander , "pgsql-hackers@postgresql.org" , pgsql-core Subject: Re: Restore-reliability mode Message-ID: <20150610082122.GE18593@alap3.anarazel.de> References: <20150529223321.GB6535@alap3.anarazel.de> <12510.1432958887@sss.pgh.pa.us> <20150530154559.GA25053@momjian.us> <20150530204727.GJ13944@alap3.anarazel.de> <20150531024845.GB13697@momjian.us> <20150603135049.GA74753@tornado.leadboat.com> <20150603141837.GD18006@awork2.anarazel.de> <20150610055722.GB218346@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150610055722.GB218346@tornado.leadboat.com> X-Pg-Spam-Score: -4.2 (----) 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 2015-06-10 01:57:22 -0400, Noah Misch wrote: > I think I agree with everything after your first sentence. I liked your > specific proposal to split StartupXLOG(), but making broad-appeal > restructuring proposals is hard. I doubt we would get good results by casting > a wide net for restructuring ideas. I'm not meaning that we should actively strive to find as many things to refactor as possible (yes, over-emphasized a bit). But that we shouldn't skip refactoring if we notice something structurally bad, just because it's been that way and we don't want to touch something "working". That argument has e.g. been made repeatedly for xlog.c contents. My feeling is that we're reaching the stage where a significant number of bugs are added because code is structured "needlessly" complicated and/or repetitive. And better testing can only catch so much - often enough somebody has to think of all the possible corner cases. > Automated testing has a lower barrier to > entry and is far less liable to make things worse instead of better. I can > hope for good results from a TestSuiteFest, but not from a RestructureFest. > That said, if folks initiate compelling restructure proposals, we should be > willing to risk bugs from them like we risk bugs to acquire new > features. Sure, increasing testing and reviews are good independently. And especially testing actually makes refactoring much more realistic. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers