Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2obU-0000M8-CD for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jul 2014 21:31:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X2obT-0000uI-Nh for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jul 2014 21:31:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2obS-0000u8-Q6 for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 21:31:38 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2obK-0008Bi-Q7 for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 21:31:37 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s63LVQe25586 for ; Thu, 3 Jul 2014 14:31:26 -0700 Message-ID: <53B5CBA9.70104@hogranch.com> Date: Thu, 03 Jul 2014 14:31:21 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #10847: Connection.setSavepoint()/releaseSavepoint() is not thread-safe References: <20140703075343.5122.97077@wrigleys.postgresql.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 7/3/2014 11:54 AM, Greg Stark wrote: > I think you need to report this to the JDBC mailing list at > pgsql-jdbc@postgresql.org > > http://www.postgresql.org/list/pgsql-jdbc/ > > The Postgres libpq interface is most definitely not threadsafe but I > don't see any indication in that stack trace that it's using libpq. It > seems to be pure Java there. yes, the jdbc driver is pure java. you still should avoid using a jdbc sql connection from more than one thread on the same transaction. its fine to reuse a connection between transactions as long as only one thread is using it at a time. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs