Unix Technical Forum

Re: [BUGS] create index concurrently blocks on transactions inother databases

This is a discussion on Re: [BUGS] create index concurrently blocks on transactions inother databases within the Pgsql Patches forums, part of the PostgreSQL category; --> On Thu, 2007-09-06 at 21:47 +0100, Simon Riggs wrote: > On Thu, 2007-09-06 at 15:55 -0400, Tom Lane wrote: ...


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, 10:34 AM
Simon Riggs
 
Posts: n/a
Default Re: [BUGS] create index concurrently blocks on transactions inother databases

On Thu, 2007-09-06 at 21:47 +0100, Simon Riggs wrote:
> On Thu, 2007-09-06 at 15:55 -0400, Tom Lane wrote:


> > This would have been painful to fix in 8.2 but it seems relatively
> > trivial in HEAD --- we just need another filter option in
> > GetCurrentVirtualXIDs.


Patch enclosed. Tested manually on same/different databases.

No docs changed, nor test cases added.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 10:34 AM
Tom Lane
 
Posts: n/a
Default Re: Re: [BUGS] create index concurrently blocks on transactions in other databases

Simon Riggs <simon@2ndquadrant.com> writes:
> On Thu, 2007-09-06 at 15:55 -0400, Tom Lane wrote:
>> This would have been painful to fix in 8.2 but it seems relatively
>> trivial in HEAD --- we just need another filter option in
>> GetCurrentVirtualXIDs.


> Patch enclosed. Tested manually on same/different databases.
> No docs changed, nor test cases added.


Applied. I changed the docs thus

- addition it must wait for all existing transactions to terminate. Thus
+ addition it must wait for all existing transactions that could potentially
+ use the index to terminate. Thus

which is a bit vague about the details but perhaps that's just as well.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

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 01:35 PM.


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