Re: A Silly Idea for Vertically-Oriented Databases

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mark Mielke <mark(at)mark(dot)mielke(dot)cc>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Avery Payne <apayne(at)pcfruit(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: A Silly Idea for Vertically-Oriented Databases
Date: 2007-09-10 15:01:24
Message-ID: 20070910150124.GA5112@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Mielke wrote:
> Simon Riggs wrote:
>> ISTM we would be able to do this fairly well if we implemented
>> Index-only columns. i.e. columns that don't exist in the heap, only in
>> an index.
>> Taken to the extreme, all columns could be removed from the heap and
>> placed in an index(es). Only the visibility information would remain on
>> the heap.
>>
> Wouldn't the extreme be - even the visibility information is in the index?

Maybe we could extract the visibility information and put it in a
storage separate from the heap. A seqscan would be a bit slower (have
to check the heap and the visibility storage) but some index scans could
be faster (can check the index and visibility storage, skipping the
heap), and updates would be faster too (append into the heap, update
visibility storage). This would allow something closer to index-only
scans. Of course, the key is to allow efficient lookup of visibility
info given a TID.

Has this been explored before?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-09-10 15:04:44 Re: Hash index todo list item
Previous Message Heikki Linnakangas 2007-09-10 14:56:31 Re: integrated tsearch doesn't work with non utf8 database