Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fvtEh-0004w9-Od for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Aug 2018 23:53:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fvtEf-0007XW-Jn for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Aug 2018 23:53:53 +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.89) (envelope-from ) id 1fvtEf-0007XO-9N for pgsql-hackers@lists.postgresql.org; Fri, 31 Aug 2018 23:53:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fvtEc-00081X-H3 for pgsql-hackers@lists.postgresql.org; Fri, 31 Aug 2018 23:53:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7VNrh67014905; Fri, 31 Aug 2018 19:53:43 -0400 From: Tom Lane To: Andres Freund cc: Tomas Vondra , Peter Geoghegan , PostgreSQL Hackers Subject: Re: buildfarm: could not read block 3 in file "base/16384/2662": read only 0 of 8192 bytes In-reply-to: <20180831221331.3l22nwxrokqeujav@alap3.anarazel.de> References: <20180811140823.gyxqbtjbr5uitgsf@alap3.anarazel.de> <20180828075213.yqyl3w2gpd5heopd@alap3.anarazel.de> <20180829025658.brk3hfdczo3f73al@alap3.anarazel.de> <6970.1535512705@sss.pgh.pa.us> <20180829032714.6yu3bxdywcvyj2li@alap3.anarazel.de> <20180829032908.o46wdjmti6c6dfep@alap3.anarazel.de> <20180829083730.n645apqhb2gyih3g@alap3.anarazel.de> <17825.1535556627@sss.pgh.pa.us> <25024.1535579899@sss.pgh.pa.us> <20180831221331.3l22nwxrokqeujav@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 31 Aug 2018 15:13:31 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14903.1535759623.1@sss.pgh.pa.us> Date: Fri, 31 Aug 2018 19:53:43 -0400 Message-ID: <14904.1535759623@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Leaving that aside, I think there's one architectural aspect of my > approach that I prefer over yours: Deduplicating eager cache rebuilds > like my approach does seems quite advantageous. That is attractive, for sure, but the other side of the coin is that getting there seems to require a lot of ticklish redesign. We would certainly not consider back-patching such a change normally, and I'm unconvinced that we should do so in this case. My thought is to do (and back-patch) my change, and then work on yours as a performance improvement for HEAD only. I don't believe that yours would make mine redundant, either --- they are good complementary changes to make real sure we have no remaining bugs of this ilk. (In particular, no matter how much de-duplication we do, we'll still have scenarios with recursive cache flushes; so I'm not quite convinced that your solution provides a 100% fix by itself.) regards, tom lane