From: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | depesz(at)depesz(dot)com, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: create index concurrently blocks on transactions in other databases |
Date: | 2007-09-06 20:47:29 |
Message-ID: | 1189111649.4175.425.camel@ebony.site |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-patches |
On Thu, 2007-09-06 at 15:55 -0400, Tom Lane wrote:
> Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > On Thu, 2007-09-06 at 12:43 +0200, hubert depesz lubaczewski wrote:
> >> i dont really see why this would be neccessary - i understand that we
> >> need to wait for transactions in the same db, but waiting for
> >> transaction in another database?
>
> > Manual says "and in addition it must wait for all existing transactions
> > to terminate." This is needed for MVCC correctness and its not a bug.
>
> No, it isn't needed for MVCC correctness. We're just out-waiting
> transactions that might try to use the index and not find what they
> should in it. AFAICS Hubert is right: there is no need to wait for
> xacts in other DBs. (At least for non-shared indexes, but we can't
> support C.I.C. on shared tables anyway.)
My mistake; I misread the question. Apologies, Hubert.
> 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 posted to pgsql-patches.
--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2007-09-06 21:54:08 | Re: create index concurrently blocks on transactions in other databases |
Previous Message | Tom Lane | 2007-09-06 19:55:49 | Re: create index concurrently blocks on transactions in other databases |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2007-09-06 21:54:08 | Re: create index concurrently blocks on transactions in other databases |
Previous Message | Heikki Linnakangas | 2007-09-06 20:07:57 | Re: HOT patch - version 15 |