From: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
To: Bruce Momjian <bruce@momjian.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: David G Johnston <david.g.johnston@gmail.com>
Cc: 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
Date: Thu, 11 Sep 2014 19:25:13 +0200
Message-ID: <5411DAF9.4040003@kaltenbrunner.cc> (raw)
In-Reply-To: <20140908134502.GB13690@momjian.us>
References: <20140515190235.GH25053@momjian.us>
<31390.1400180834@sss.pgh.pa.us>
<4FB93C6A-2790-4167-931A-E53E6694F73E@wingo.ch>
<31813.1400181933@sss.pgh.pa.us>
<CAM-w4HOAp903Fd_KU9Ur0wmYWncawthGKS4qqHBPmYy5NEJvHA@mail.gmail.com>
<1361.1400247902@sss.pgh.pa.us>
<20140516144825.GL25053@momjian.us>
<CAKFQuwaQQBG-gOmFB8XEebY1jpadu0Y-m7i9wJQFaQbGpy-+hw@mail.gmail.com>
<20140906150743.GC20146@momjian.us>
<20140907014245.GJ14037@eldon.alvh.no-ip.org>
<20140908134502.GB13690@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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...
Stefan
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: stefan@kaltenbrunner.cc, bruce@momjian.us, alvherre@2ndquadrant.com, david.g.johnston@gmail.com
Subject: Re: BUG #10329: Could not read block 0 in file "base/56100265/57047884": read only 0 of 8192 bytes
In-Reply-To: <5411DAF9.4040003@kaltenbrunner.cc>
References: <20140515190235.GH25053@momjian.us> <31390.1400180834@sss.pgh.pa.us> <4FB93C6A-2790-4167-931A-E53E6694F73E@wingo.ch> <31813.1400181933@sss.pgh.pa.us> <CAM-w4HOAp903Fd_KU9Ur0wmYWncawthGKS4qqHBPmYy5NEJvHA@mail.gmail.com> <1361.1400247902@sss.pgh.pa.us> <20140516144825.GL25053@momjian.us> <CAKFQuwaQQBG-gOmFB8XEebY1jpadu0Y-m7i9wJQFaQbGpy-+hw@mail.gmail.com> <20140906150743.GC20146@momjian.us> <20140907014245.GJ14037@eldon.alvh.no-ip.org> <20140908134502.GB13690@momjian.us> <5411DAF9.4040003@kaltenbrunner.cc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox