Unix Technical Forum

Re: HOT Patch - Ready for review

This is a discussion on Re: HOT Patch - Ready for review within the Pgsql Patches forums, part of the PostgreSQL category; --> Pavan Deolasee wrote: > Please find the attached HOT patch, which I think is now ready for > review. ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 09:58 AM
Heikki Linnakangas
 
Posts: n/a
Default Re: HOT Patch - Ready for review

Pavan Deolasee wrote:
> Please find the attached HOT patch, which I think is now ready for
> review.


What's the purpose of the "HeapScanHintPagePrune" mechanism in index
builds? I lost track of the discussion on create index, is the it
necessary for correctness? A comment in IndexBuildHeapScan explaining
why it's done would be nice. In any case a PG_TRY/CATCH block should be
used to make sure it's turned off after an unsuccessful index build.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 09:58 AM
Pavan Deolasee
 
Posts: n/a
Default Re: HOT Patch - Ready for review

On 4/19/07, Heikki Linnakangas <heikki@enterprisedb.com> wrote:
>
>
> What's the purpose of the "HeapScanHintPagePrune" mechanism in index
> builds? I lost track of the discussion on create index, is the it
> necessary for correctness?



Its not required strictly for correctness, but it helps us prune the
HOT-chains
while index building. During index build, if we skip a tuple which is
RECENTLY_DEAD, existing transactions can not use the index for queries.
Pruning the HOT-chains reduces the possibility of finding such tuples
while building the index.


A comment in IndexBuildHeapScan explaining
> why it's done would be nice.



I would do that.


In any case a PG_TRY/CATCH block should be
> used to make sure it's turned off after an unsuccessful index build.



Oh thanks. Would do that too

I would wait for other review comments before submitting a fresh patch.
I hope thats ok.

Thanks,
Pavan
--

EnterpriseDB http://www.enterprisedb.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com