Re: Transaction isolation and constraints

From: cliff(at)krumvieda(dot)com
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Transaction isolation and constraints
Date: 2007-12-05 20:35:29
Message-ID: 200712052035.lB5KZTQB024956@phumos.tgtaft.emc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, Tom:

>Whichever one manages to get to the index page first will go through.
>The second one will block waiting to see if the first one commits,
>and will error out if so --- or proceed, if it aborts.

I see, this makes sense. What if the two transactions insert rows
that don't violate the constraint: will they be able to proceed in
parallel? Or will one wait for the other, because they both need to
update the shared index? I.e., does the mechanism work by waiting for
one index update to commit before permitting the next?

--Cliff

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Jones 2007-12-05 21:00:24 Re: WAL shipping question
Previous Message SHARMILA JOTHIRAJAH 2007-12-05 19:39:46 Re: WAL shipping question