pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ahnf <interz12@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: auto set of read-only flag??
Date: Thu, 25 Oct 2007 07:38:20 -0700 (PDT)
Message-ID: <651486.57061.qm@web36610.mail.mud.yahoo.com> (raw)

var YAHOO = {'Shortcuts' : {}};
YAHOO.Shortcuts.hasSensitiveText = false;
YAHOO.Shortcuts.sensitivityType = [];
YAHOO.Shortcuts.doUlt = false;
YAHOO.Shortcuts.location = "us";
YAHOO.Shortcuts.document_id = 0;
YAHOO.Shortcuts.document_type = "";
YAHOO.Shortcuts.document_title = "Re: [JDBC] ERROR transaction is read-only";
YAHOO.Shortcuts.document_publish_date = "";
YAHOO.Shortcuts.document_author = "interz12@yahoo.com";
YAHOO.Shortcuts.document_url = "";
YAHOO.Shortcuts.document_tags = "";
YAHOO.Shortcuts.annotationSet = {
"lw_1193323068_0": {
"text": "interz12@yahoo.com",
"extended": 0,
"startchar": 304,
"endchar": 321,
"start": 304,
"end": 321,
"extendedFrom": "",
"predictedCategory": "",
"predictionProbability": "0",
"weight": 1,
"type": ["shortcuts:/us/instance/identifier/hyperlink/mailto"],
"category": ["IDENTIFIER"],
"context": "normal Original Message From ahnf interz12@yahoo.com To pgsql-jdbc@postgresql.org Sent Wednesday October",
"metaData": {
"linkHref": "mailto:interz12@yahoo.com",
"linkProtocol": "mailto",
"linkYmailto": "mailto:interz12@yahoo.com"
}
 },
"lw_1193323068_1": {
"text": "pgsql-jdbc@postgresql.org",
"extended": 0,
"startchar": 424,
"endchar": 448,
"start": 424,
"end": 448,
"extendedFrom": "",
"predictedCategory": "",
"predictionProbability": "0",
"weight": 1,
"type": ["shortcuts:/us/instance/identifier/hyperlink/mailto"],
"category": ["IDENTIFIER"],
"context": "Message From ahnf interz12@yahoo.com To pgsql-jdbc@postgresql.org Sent Wednesday October 24 2007",
"metaData": {
"linkHref": "mailto:pgsql-jdbc@postgresql.org",
"linkProtocol": "mailto",
"linkYmailto": "mailto:pgsql-jdbc@postgresql.org"
}
 }
};

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???

----- Original Message ----
From: ahnf <interz12@yahoo.com>
To: pgsql-jdbc@postgresql.org
Sent: Wednesday, October 24, 2007 9:17:34 AM
Subject: [JDBC] ERROR transaction is read-only



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












Message-ID: <651486.57061.qm@web36610.mail.mud.yahoo.com>
Permalink:  ../651486.57061.qm@web36610.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/651486.57061.qm@web36610.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: interz12@yahoo.com
  Subject: Re: auto set of read-only flag??
  In-Reply-To: <651486.57061.qm@web36610.mail.mud.yahoo.com>
  References: <651486.57061.qm@web36610.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox