pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Connection.setsavepoint() / releaseSavepoint() is not thread-safe
Date: Mon, 7 Jul 2014 06:17:00 -0700 (PDT)
Message-ID: <1404739020449-5810741.post@n5.nabble.com> (raw)
In-Reply-To: <CADK3HHJAqztqKGrcZqO5H0UFjpQsoHOZFTzMpJtmZoRykvkwYg@mail.gmail.com>
References: <25DC6AF0-5FC2-4B68-A3B8-089483E9E360@schlichtherle.de>
	<E7535FFC-5038-4465-80AE-B0AFE18CFE0C@schlichtherle.de>
	<CADK3HHJAqztqKGrcZqO5H0UFjpQsoHOZFTzMpJtmZoRykvkwYg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Dave Cramer-8 wrote
> I don't think this is a JDBC issue. Rather a limitation of the postgresql
> server.

While my experience with other RDBMS is not that great I believe the
"limitation" belongs to the entire category and is probably a direct (or
indirect) result of the SQL standard.

Executing SQL commands is a linear process.  While some degree of command
execution parallelism is possible the user transaction itself is serial -
each command must end before the next command begins.  Thus the whole
premise of the parent/child setup is flawed.  If you try to have two child
threads working within a single parent transaction then by definition they
are going to be interfering with each other.  



view thread (4+ messages)

Message-ID: <1404739020449-5810741.post@n5.nabble.com>
Permalink:  ../1404739020449-5810741.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1404739020449-5810741.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: david.g.johnston@gmail.com
  Subject: Re: Connection.setsavepoint() / releaseSavepoint() is not thread-safe
  In-Reply-To: <1404739020449-5810741.post@n5.nabble.com>
  References: <25DC6AF0-5FC2-4B68-A3B8-089483E9E360@schlichtherle.de> <E7535FFC-5038-4465-80AE-B0AFE18CFE0C@schlichtherle.de> <CADK3HHJAqztqKGrcZqO5H0UFjpQsoHOZFTzMpJtmZoRykvkwYg@mail.gmail.com> <1404739020449-5810741.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox