Skip site navigation (1) Skip section navigation (2)

Re: create index concurrently blocks on transactions inother databases

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: depesz(at)depesz(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: create index concurrently blocks on transactions inother databases
Date: 2007-09-06 18:20:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-patches
On Thu, 2007-09-06 at 12:43 +0200, hubert depesz lubaczewski wrote:
> steps to reproduce:
> session1: connect using user1 to database1.
> session2: connect using user2 to database2.
> session1: create table x ( y int);
> session2: begin;
> session1: create index concurrently q on x(y);
> it hangs.
> session2: rollback/commit;
> session1: finishes.
> 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?
> i tested it on 8.2.4 and 8.3devel from cvs-head, fetched 3 days ago.

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.

  Simon Riggs

In response to


pgsql-bugs by date

Next:From: Pascal Van De GuchtDate: 2007-09-06 19:23:34
Subject: BUG #3604: lo_import does not work with filenames with accents
Previous:From: Tom LaneDate: 2007-09-06 17:41:54
Subject: Re: BUG #3598: Strange behaviour of character columns in select with views

pgsql-patches by date

Next:From: Tom LaneDate: 2007-09-06 18:59:12
Subject: Re: tsearch refactorings
Previous:From: Heikki LinnakangasDate: 2007-09-06 18:05:57
Subject: Re: HOT patch - version 15

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group