Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ERROR transaction is read-only

1 view
Skip to first unread message

ahnf

unread,
Oct 24, 2007, 11:17:34 AM10/24/07
to

I am using the postgresql-8.2.506.jdbc4.jar file

My jdbc connections are setReadOnly(false)

When attempting an insert I get

org.postgresql.util.PSQLException: ERROR: transaction is read-only

ideas?


org.postgresql.util.PSQLException: ERROR: transaction is read-only
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:351)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:344)

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

inte...@yahoo.com

unread,
Oct 24, 2007, 2:22:59 PM10/24/07
to

FYI, the connection is non-readonly when I initially create it. After
doing a select, it becomes read-only and I have to manually set it back
to non-readonly. Is this normal???

ideas?


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majo...@postgresql.org so that your
message can get through to the mailing list cleanly

0 new messages