Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl104-0002iJ-FA for pgsql-bugs@arkaria.postgresql.org; Thu, 15 May 2014 19:07:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wl103-0004R0-Qs for pgsql-bugs@arkaria.postgresql.org; Thu, 15 May 2014 19:07: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 1Wl103-0004Qt-8V for pgsql-bugs@postgresql.org; Thu, 15 May 2014 19:07:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl0zw-00052K-Kx for pgsql-bugs@postgresql.org; Thu, 15 May 2014 19:07:27 +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 s4FJ7Eu0031391; Thu, 15 May 2014 15:07:14 -0400 From: Tom Lane To: Bruce Momjian cc: Olivier Macchioni , pgsql-bugs@postgresql.org Subject: Re: BUG #10329: Could not read block 0 in file "base/56100265/57047884": read only 0 of 8192 bytes In-reply-to: <20140515190235.GH25053@momjian.us> References: <20140515130945.4226.27569@wrigleys.postgresql.org> <26235.1400166587@sss.pgh.pa.us> <4EE3A338-8C14-4E1B-9F2B-479354765138@wingo.ch> <20140515190235.GH25053@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 15 May 2014 15:02:35 -0400" Date: Thu, 15 May 2014 15:07:14 -0400 Message-ID: <31390.1400180834@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 Bruce Momjian writes: > On Thu, May 15, 2014 at 05:20:35PM +0200, Olivier Macchioni wrote: >> I guess my best bet is to replace it by another kind of indexes... and maybe one day PostgreSQL will be clever enough to issue a warning / error in such a case for the people like me who don't read *all the doc* :P > Yes, streaming replication has made our hash indexes even worse. In the > past, I have suggested we issue a warning for the creation of hash > indexes, but did not get enough agreement. Mainly because it wouldn't be a very helpful message. I wonder though if we could throw a flat-out error for attempts to use a hash index on a hot standby server. That would get people's attention without being mere nagging in other situations. It's not a 100% solution because you'd still lose if you tried to use a hash index on a slave since promoted to master. But it would help without being a large sink for effort. 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