Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3B8602E010B for ; Fri, 1 Feb 2008 16:37:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85484-03 for ; Fri, 1 Feb 2008 16:37:37 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 773A22E00DE for ; Fri, 1 Feb 2008 16:37:37 -0400 (AST) Received: (qmail 24111 invoked by uid 1112); 1 Feb 2008 20:37:35 -0000 Date: Fri, 1 Feb 2008 15:37:35 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Matt Chambers cc: pgsql-jdbc@postgresql.org Subject: Re: Pg JDBC3 driver and savepoints In-Reply-To: <47A34E2D.2090202@imageworks.com> Message-ID: References: <47A34E2D.2090202@imageworks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/2 X-Sequence-Number: 18209 On Fri, 1 Feb 2008, Matt Chambers wrote: > Has anyone here used the Spring Framework and JDBC template and nested > transactions? The documentation for Spring claims that if the JDBC driver > supports save points then it would use them in particular situations, for > example when you marked a method as a nested transaction. I know postgres > supports save points and that I can manually save point, but the spring > framework is not detecting the driver supports save points. Is there some > savepoint interface that has to be implemented? > I would guess Spring would use DatabaseMetaData.supportsSavepoints() to determine if it can use savepoints. Our implementation of that says, "return connection.haveMinimumServerVersion("8.0");", so as long as you've got a 8.0+ server it should work. For more details you'd have to ask the Spring people. Kris Jurka