Re: ERROR: transaction is read-only - Mailing list pgsql-jdbc

From Maciek Sakrejda
Subject Re: ERROR: transaction is read-only
Date
Msg-id AANLkTi=tJQ2uM8vtw=4S__j_jFMZ6T_J2MjLgfbLE==m@mail.gmail.com
Whole thread Raw
In response to ERROR: transaction is read-only  ("Satish Burnwal (sburnwal)" <sburnwal@cisco.com>)
Responses Re: ERROR: transaction is read-only
List pgsql-jdbc
Your transaction is probably being set to read-only somewhere. I'm
going out on a limb and venture that that does not have anything to do
with the code you've showed us. I don't think the driver sets a
connection to read-only on its own anywhere (only through explicit
user caslls to setReadOnly--or, of course, manually issuing a query
such as "SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY" or just
"SET TRANSACTION READ ONLY"). Are you using RO connections anywhere
else? Could this be improper reuse of a read-only connection from a
pool? Can you turn this into an isolated test case or at least provide
more details on what works and what doesn't.

---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
msakrejda@truviso.com
www.truviso.com

pgsql-jdbc by date:

Previous
From: "Satish Burnwal (sburnwal)"
Date:
Subject: ERROR: transaction is read-only
Next
From: Samuel Gendler
Date:
Subject: Re: ERROR: transaction is read-only