Re: Pluggable Indexes - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Pluggable Indexes
Date
Msg-id 20090122160227.GE4296@alvh.no-ip.org
Whole thread Raw
In response to Re: Pluggable Indexes  (Teodor Sigaev <teodor@sigaev.ru>)
Responses Re: Pluggable Indexes  (Robert Haas <robertmhaas@gmail.com>)
Re: Pluggable Indexes  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Teodor Sigaev wrote:
>> What other constraints are there on such non-in-core indexex?  Early (2005)
>> GIST indexes were very painful in production environments because vacuuming
>> them held locks for a *long* time (IIRC, an hour or so on my database) on
>> the indexes locking out queries.  Was that just a shortcoming of the
>> implementation, or was it a side-effect of them not supporting recoverability.
>
> GiST concurrent algorithm is based on Log Sequence Number of WAL and that 
> was the reason to implement WAL (and recoverability) first in GiST.

Hmm, IIRC it is based on a monotonically increasing number.  It could
have been anything.  LSN was just a monotonically increasing number that
would be available if WAL was implemented first (or in parallel).

Of course, there's no much point in an index that's easily corrupted, so
I understand the desire to implement WAL too -- I'm just pointing out
that concurrency could have been developed independently.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Pluggable Indexes (was Re: rmgr hooks (v2))
Next
From: Alvaro Herrera
Date:
Subject: Re: Pluggable Indexes (was Re: rmgr hooks (v2))