Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwU7a-00086N-GU for pgsql-jdbc@arkaria.postgresql.org; Thu, 04 Dec 2014 10:58:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwU7Z-0002oW-Rb for pgsql-jdbc@arkaria.postgresql.org; Thu, 04 Dec 2014 10:58:53 +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 1XwU7Y-0002lp-7A for pgsql-jdbc@postgresql.org; Thu, 04 Dec 2014 10:58:52 +0000 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XwU7T-0005uj-H2 for pgsql-jdbc@postgresql.org; Thu, 04 Dec 2014 10:58:50 +0000 Received: by mail-wi0-f177.google.com with SMTP id l15so27450964wiw.10 for ; Thu, 04 Dec 2014 02:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=g5g4zVUwowBpDPzKOqXdEEcYuclb7Ed+O4dV39ooGbs=; b=IfVd3vpJI9HZK6aQLCDyML3W3PHa4PM1p6JhXDebPUifdGpFjmTopN3kbMW8N47aTa 6LsfyP20Aa0ihPLXCyiBfHFL+RgUzNphNzhCUUDKwfshAUTFOdz3OQclpgcjNMzbMHHG i6+81o8aW4NBm7MvNK0ocoNoukH427yNgzwEtdVIAjqNyhZJNnmiAi0sHIbwyQMowdec Y4r6bd+XjYdabC/EdcCNyDIu3Xu6yh8IqPDE27VlNcOz4GF8Do82dRpUY5CUiEn9jker lvFcvdSMtu+I+McXuoBP9DmSvPGPA2iRaFHm5t71wnOofUvj1le47rDBs7uSrDxh9cSA cUzQ== X-Received: by 10.180.208.81 with SMTP id mc17mr6641132wic.47.1417690725543; Thu, 04 Dec 2014 02:58:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.204.163 with HTTP; Thu, 4 Dec 2014 02:58:25 -0800 (PST) In-Reply-To: <1417690048513-5829205.post@n5.nabble.com> References: <1417690048513-5829205.post@n5.nabble.com> From: Dave Cramer Date: Thu, 4 Dec 2014 05:58:25 -0500 X-Google-Sender-Auth: -bYskYB70KAeuL1vVgBgReFdgX0 Message-ID: Subject: Re: Set readonly transaction per transaction To: Alexandor84 Cc: List Content-Type: multipart/alternative; boundary=001a11c33bb018f8fa050961d8fc X-Pg-Spam-Score: -2.6 (--) 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 --001a11c33bb018f8fa050961d8fc Content-Type: text/plain; charset=UTF-8 Currently no, there is no way to do this. can you describe your use case ? Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On 4 December 2014 at 05:47, Alexandor84 wrote: > Hi All, > > I found that JDBC driver set readOnly transaction as: SET SESSION > CHARACTERISTICS AS TRANSACTION READ ONLY > > Is there a way to reconfigure JDBC driver to set ReadOnly like: > BEGIN TRANSACTION READ ONLY; > . > . > COMMIT; > > Thank you in advance, > Alex > > > > -- > View this message in context: > http://postgresql.nabble.com/Set-readonly-transaction-per-transaction-tp5829205.html > Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > --001a11c33bb018f8fa050961d8fc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Currently no, there is no way to do this.

can you describe your use case ?
<= br clear=3D"all">
Dave Cramer

dav= e.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 4 December 2014 at 05:47, Alexandor84 <oleksandr.sukhotskyi@gmail.com> wrote:
Hi All,

I found that JDBC driver set readOnly transaction as: SET SESSION
CHARACTERISTICS AS TRANSACTION READ ONLY

Is there a way to reconfigure JDBC driver to set ReadOnly like:
BEGIN TRANSACTION READ ONLY;
.
.
COMMIT;

Thank you in advance,
Alex



--
View this message in context: http:= //postgresql.nabble.com/Set-readonly-transaction-per-transaction-tp5829205.= html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

--001a11c33bb018f8fa050961d8fc--