Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WlGr4-0005tA-KS for pgsql-bugs@arkaria.postgresql.org; Fri, 16 May 2014 12:03:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WlGr4-00063p-2U for pgsql-bugs@arkaria.postgresql.org; Fri, 16 May 2014 12:03:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WlGr3-00063i-F0 for pgsql-bugs@postgresql.org; Fri, 16 May 2014 12:03:13 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WlGqz-0006c4-AF for pgsql-bugs@postgresql.org; Fri, 16 May 2014 12:03:13 +0000 Received: from anarazel.de (p5DDC75CC.dip0.t-ipconnect.de [93.220.117.204]) by mrelayeu.kundenserver.de (node=mreue003) with ESMTP (Nemesis) id 0MCucZ-1Wci8B08rj-009eDv; Fri, 16 May 2014 14:03:04 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 5671C1006B4; Fri, 16 May 2014 14:03:03 +0200 (CEST) Date: Fri, 16 May 2014 14:03:03 +0200 From: Andres Freund To: Greg Stark Cc: Tom Lane , Olivier Macchioni , Bruce Momjian , PostgreSQL Bugs Subject: Re: Re: BUG #10329: Could not read block 0 in file "base/56100265/57047884": read only 0 of 8192 bytes Message-ID: <20140516120303.GC28158@awork2.anarazel.de> References: <20140515130945.4226.27569@wrigleys.postgresql.org> <26235.1400166587@sss.pgh.pa.us> <4EE3A338-8C14-4E1B-9F2B-479354765138@wingo.ch> <20140515190235.GH25053@momjian.us> <31390.1400180834@sss.pgh.pa.us> <4FB93C6A-2790-4167-931A-E53E6694F73E@wingo.ch> <31813.1400181933@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V02:K0:f/lYVEVzACZdNNCtwXIGeMdlB9sPlMGgNRMpA/Ue8n+ YKmjxbzR3K+FDd/58dZsqBRsqU+aPLA3oFgSCfafAlO/U/Rse0 JBAID5Yn0kgQP9DwoXA29z1IxKeNba6BICPS1mTUAX9ornYMZG gV9t5UTRAHz1lGySygapfmy+osOM+Xbs4vyN+vMNMmYopNScDj Irq1Gqgk50H6bNGB5jBBjWHwUbssUwYmO9ciEeu+irfqLpnPB1 6LVklzNZuzTOC/HwYD9Q/BPXHWQLFQYPTc38/KxogTQTfNBhpN D6e8gSaVOpllhLpSLDB9wHLQTg6xvX9hKZp2QsiIHdZ9/jZGHa 7LxpoPikgtD31pP61+0aSkaw0lmiKBEw/BUz9NRXT X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-05-16 12:58:57 +0100, Greg Stark wrote: > On Thu, May 15, 2014 at 8:25 PM, Tom Lane wrote: > > One of the arguments against Bruce's proposal to print a warning at hash > > index creation is that it's a particularly ineffective form of > > deprecation. In your example, since the hash index was created by some > > app not manually, I'll bet nobody would have seen/noticed the warning > > even if there had been one. > > I suggested we make a GUC allow_unrecoverable_indexes and default it > to false. If you want to create hash indexes you need to set it to > true or else you just get errors. Fine with me. > A more general solution is to emit a WAL record the first time a > non-crashsafe index is touched after a checkpoint. On a slave that > record could just mark the index invalid. Not trivially no. Recovery can't write to the catalog. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs