Re: A thought on Index Organized Tables

From: Gokulakannan Somasundaram <gokul007(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: A thought on Index Organized Tables
Date: 2010-02-24 16:05:18
Message-ID: 9362e74e1002240805m44fe96bak6f162ae6f48a54e7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
>
> I think you're a barking up the wrong tree. AFAIUI, the need for the
> visibility map has not very much to do with whether the table has
> indices, and everything to do with avoiding unnecessary VACUUMs. In
> any event, you've not shown that the visibility map HAS any overhead,
> so talking about skipping it seems entirely premature. Keep in mind
> that the visibility map is quite small.
>

OK! i am not saying to remove the visibility map, if i am misunderstood. All
i am saying here is to remove the index only scan processing of visibility
map. If it is being used only for vacuums, you need not make it crash safe
and no WAL comes into picture.

>
> The point of the visibility map as far as index-only scans are
> concerned is that if all the needed column values can be extracted
> from the index, we still need to read the heap page to check tuple
> visibility - unless, of course, we already know from the visibility
> map that all the tuples on that heap page are guaranteed to be visible
> to all transactions. On a read-only or read-mostly table, this will
> reduce the cost of checking tuple visibility by several orders of
> magnitude.
>
> I understand that. As i suggested above, if you have no indexes for a
table, why do you need to spend the extra effort in making it crash safe for
that table? Hope i am clear.

Thanks,
Gokul.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-02-24 16:06:03 Re: pgsql: Remove pre-7.4 documentaiton mentions, now that 8.0 is the oldest
Previous Message Bruce Momjian 2010-02-24 15:54:43 Re: [COMMITTERS] pgsql: Remove pre-7.4 documentaiton mentions, now that 8.0 is the oldest