Re: transaction blocking inserts in postgresql 7.3

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: Chris Hutchinson <chris(at)hutchinsonsoftware(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: transaction blocking inserts in postgresql 7.3
Date: 2003-03-26 19:50:46
Message-ID: 3E820496.7030505@cvc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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'. The second 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(at)postgresql(dot)org
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Smith 2003-03-26 21:20:46 Re: Please help with this error message
Previous Message jwsacksteder 2003-03-26 19:50:08 Re: temporary table oddity