Re: Testing with concurrent sessions - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: Testing with concurrent sessions
Date
Msg-id 4B460B63.8080607@cs.helsinki.fi
Whole thread Raw
In response to Re: Testing with concurrent sessions  (Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>)
List pgsql-hackers
On 2010-01-07 18:13 +0200, Marko Tiikkaja wrote:
> I had a similar syntax in mind, but instead of using threads, just
> execute the file in order using asynchronous connections.

I completely failed to make the point here which was to somehow mark 
which statements will (or, should) block.  So here we go:

A=> BEGIN;
B=> BEGIN;
A=> UPDATE foo ..;
&B=> UPDATE foo ..; -- this will block
A=> COMMIT;
B=> SELECT * FROM foo;
B=> COMMIT;

[expected output here]


Regards,
Marko Tiikkaja


pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: Testing with concurrent sessions
Next
From: "David E. Wheeler"
Date:
Subject: Re: Testing with concurrent sessions