From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Gokulakannan Somasundaram <gokul007(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:18:32 |
Message-ID: | 603c8f071002240818y10b5c377s8d41f617ef332400@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Feb 24, 2010 at 11:05 AM, Gokulakannan Somasundaram
<gokul007(at)gmail(dot)com> wrote:
>> 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.
So basically you want to have index-only scans, but you want them to
be really slow?
>> 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.
Tables without indices don't need to be crash safe? News to me.
...Robert
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-02-24 16:27:01 | Re: Recent vendor SSL renegotiation patches break PostgreSQL |
Previous Message | Gokulakannan Somasundaram | 2010-02-24 16:16:11 | Re: A thought on Index Organized Tables |