From: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
To: Andres Freund <andres@2ndquadrant.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: 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:51:01 +0200
Message-ID: <5411E105.7050409@kaltenbrunner.cc> (raw)
In-Reply-To: <20140911174637.GD15099@alap3.anarazel.de>
References: <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>
<20140911172923.GC15099@alap3.anarazel.de>
<20140911174137.GI16199@momjian.us>
<20140911174637.GD15099@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 09/11/2014 07:46 PM, Andres Freund wrote:
> On 2014-09-11 13:41:37 -0400, Bruce Momjian wrote:
>>>> 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 like an almost trivial problem in comparison to the actual
> difficulty of implementing UNLOGGED indexed on LOGGED tables. Yes, I
> think forbidding unlogged hash tables + teaching pg_dump a heuristic to
> treat any < 9.x hash index as unlogged would be ok.
yeah that is what I would vote for as well, and this is way cleaner than
emitting a textual warning.
>
>> That seems to defeat the purpose of this.
>
> Why? It makes hash indexes usable for the cases where it's safe to do
> so. Great! It also adds a feature which is really interesting for other
> types of indexes.
Definitly a feature that is interesting for other types of indexes, it
would also lower the barrier for adding new index types to pg or at
least make it cleaner for people playing with new ideas ones.
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, andres@2ndquadrant.com, 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: <5411E105.7050409@kaltenbrunner.cc>
References: <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> <20140911172923.GC15099@alap3.anarazel.de> <20140911174137.GI16199@momjian.us> <20140911174637.GD15099@alap3.anarazel.de> <5411E105.7050409@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