Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WlIS0-00017w-6A for pgsql-bugs@arkaria.postgresql.org; Fri, 16 May 2014 13:45:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WlIRz-0002wR-JV for pgsql-bugs@arkaria.postgresql.org; Fri, 16 May 2014 13:45:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WlIRy-0002wK-M6 for pgsql-bugs@postgresql.org; Fri, 16 May 2014 13:45:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WlIRj-0008QR-6z for pgsql-bugs@postgresql.org; Fri, 16 May 2014 13:45:26 +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 s4GDj2kG001362; Fri, 16 May 2014 09:45:03 -0400 From: Tom Lane To: Greg Stark cc: 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 In-reply-to: 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> Comments: In-reply-to Greg Stark message dated "Fri, 16 May 2014 12:58:57 +0100" Date: Fri, 16 May 2014 09:45:02 -0400 Message-ID: <1361.1400247902@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 Greg Stark writes: > 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. I still think this is throwing the error at the wrong place. People will turn on the GUC the first time it gets in their way, and then much later discover that the index doesn't work on a slave, and we'll get a bug report exactly like this one. We need a check that is tightly connected to actual unsafe usage, rather than basically-user-unfriendly complaints at a point that's not doing anything unsafe. (Well, anything more unsafe than it ever was.) regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs