Re: transaction blocking inserts in postgresql 7.3 - Mailing list pgsql-general

From Dennis Gearon
Subject Re: transaction blocking inserts in postgresql 7.3
Date
Msg-id 3E820496.7030505@cvc.net
Whole thread Raw
In response to Re: transaction blocking inserts in postgresql 7.3  ("Chris Hutchinson" <chris@hutchinsonsoftware.com>)
Responses Re: transaction blocking inserts in postgresql 7.3  ("Chris Hutchinson" <chris@hutchinsonsoftware.com>)
List pgsql-general
Actually,
    I need a clarification of this since it might affect my design. When you mean
blocked, is an error thrown, or does it just wait its turn?

Chris Hutchinson wrote:
> Dennis,
>
>
>>I'm really curious how you got these two transactions to occur
>>simultaneously, i.e. how does one DO the test that you DID?
>
>
> Open two terminal sessions, run a copy of psql in both. In one run the 'begin; insert...', in the other run 'insert'.
Thesecond is blocked until a commit (or rollback) is entered in the first. 
>
> Regards,
> Chris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


pgsql-general by date:

Previous
From: Jason Hihn
Date:
Subject: Re: [pgsql-advocacy] Ack! Postgres.org
Next
From: "Chris Smith"
Date:
Subject: Re: Please help with this error message