Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X48n5-0008Jy-0D for pgsql-jdbc@arkaria.postgresql.org; Mon, 07 Jul 2014 13:17:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X48n4-0001vZ-C5 for pgsql-jdbc@arkaria.postgresql.org; Mon, 07 Jul 2014 13:17:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X48n3-0001vR-Lk for pgsql-jdbc@postgresql.org; Mon, 07 Jul 2014 13:17:05 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X48mz-0002eb-Qj for pgsql-jdbc@postgresql.org; Mon, 07 Jul 2014 13:17:03 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X48my-00064d-FN for pgsql-jdbc@postgresql.org; Mon, 07 Jul 2014 06:17:00 -0700 Date: Mon, 7 Jul 2014 06:17:00 -0700 (PDT) From: David G Johnston To: pgsql-jdbc@postgresql.org Message-ID: <1404739020449-5810741.post@n5.nabble.com> In-Reply-To: References: <25DC6AF0-5FC2-4B68-A3B8-089483E9E360@schlichtherle.de> Subject: Re: Connection.setsavepoint() / releaseSavepoint() is not thread-safe MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 2.7 (++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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.