Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XS8NV-00014Z-Vq for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Sep 2014 17:41:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XS8NV-0002mt-GD for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Sep 2014 17:41:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XS8NU-0002mn-Qr for pgsql-bugs@postgresql.org; Thu, 11 Sep 2014 17:41:52 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XS8NO-0008Iz-2O for pgsql-bugs@postgresql.org; Thu, 11 Sep 2014 17:41:51 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XS8NF-0001dO-Ow; Thu, 11 Sep 2014 13:41:37 -0400 Date: Thu, 11 Sep 2014 13:41:37 -0400 From: Bruce Momjian To: Andres Freund Cc: Stefan Kaltenbrunner , Alvaro Herrera , David G Johnston , pgsql-bugs@postgresql.org Subject: Re: Re: BUG #10329: Could not read block 0 in file "base/56100265/57047884": read only 0 of 8192 bytes Message-ID: <20140911174137.GI16199@momjian.us> References: <31813.1400181933@sss.pgh.pa.us> <1361.1400247902@sss.pgh.pa.us> <20140516144825.GL25053@momjian.us> <20140906150743.GC20146@momjian.us> <20140907014245.GJ14037@eldon.alvh.no-ip.org> <20140908134502.GB13690@momjian.us> <5411DAF9.4040003@kaltenbrunner.cc> <20140911172923.GC15099@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140911172923.GC15099@alap3.anarazel.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -4.4 (----) 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 Thu, Sep 11, 2014 at 07:29:23PM +0200, Andres Freund wrote: > On 2014-09-11 19:25:13 +0200, Stefan Kaltenbrunner wrote: > > On 09/08/2014 03:45 PM, Bruce Momjian wrote: > > > On Sat, Sep 6, 2014 at 09:42:45PM -0400, Alvaro Herrera wrote: > > >> Bruce Momjian wrote: > > >> > > >>> Here is a patch which implements the warning during CREATE INDEX ... > > >>> HASH. If WAL-logging of hash indexes is ever implemented, we can remove > > >>> this warning. > > >> > > >> I think we should have CREATE UNLOGGED INDEX, and simply disallow any > > >> hash index from being created unless it's marked as such. > > > > > > Wow, that sounds much more radical than we discussed. Seeing I got > > > push-back just for the warning, I don't see how disabling "logged" WAL > > > indexes is going to be accepted. > > > > > > It is a good idea, though. :-) > > > > I agree there - implementing CREATE UNLOGGED INDEX and use THAT for hash > > indexes seems like a fairly clean thing to me, hash indexes _are_ > > unlogged so lets reflect that directly. > > I could even envision pg_dump doing that conversion automatically... > > I think this did came up as a solution before. It's just that nobody > found a reasonably easy and clean way to do unlogged indexes on logged > tables so far. It's far from trivial. And practically, how would we implement this for upgrades? Would we have pg_dump emit UNLOGGED for any hash creation command? That seems to defeat the purpose of this. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs