Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id CAEE39FC755 for ; Thu, 25 Oct 2007 11:38:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 37898-03-3 for ; Thu, 25 Oct 2007 11:38:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web36610.mail.mud.yahoo.com (web36610.mail.mud.yahoo.com [209.191.85.27]) by postgresql.org (Postfix) with SMTP id A05379FC775 for ; Thu, 25 Oct 2007 11:38:22 -0300 (ADT) Received: (qmail 57098 invoked by uid 60001); 25 Oct 2007 14:38:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=fBvU/Bnkaty7u36qycjd6mRU/WsgfkcrGUPyiCECTemjrD/KuPf2pKI3Bg6QBE4wLS+BIozabTel3JuSDBis6wA+qmKw6VSUHKfkxCzc5BY9wJhL2WhgxYSLDxh8HOnDRFtiMSUopKV7qzJHTuoQ1kxQmEw/EZbGO9dmCpLDDC4=; Received: from [207.40.214.40] by web36610.mail.mud.yahoo.com via HTTP; Thu, 25 Oct 2007 07:38:20 PDT X-Mailer: YahooMailRC/814.06 YahooMailWebService/0.7.134.12 Date: Thu, 25 Oct 2007 07:38:20 -0700 (PDT) From: ahnf Subject: auto set of read-only flag?? To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <651486.57061.qm@web36610.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/134 X-Sequence-Number: 17706 var YAHOO =3D {'Shortcuts' : {}};=0AYAHOO.Shortcuts.hasSensitiveText =3D fa= lse;=0AYAHOO.Shortcuts.sensitivityType =3D [];=0AYAHOO.Shortcuts.doUlt =3D = false;=0AYAHOO.Shortcuts.location =3D "us";=0AYAHOO.Shortcuts.document_id = =3D 0;=0AYAHOO.Shortcuts.document_type =3D "";=0AYAHOO.Shortcuts.document_t= itle =3D "Re: [JDBC] ERROR transaction is read-only";=0AYAHOO.Shortcuts.doc= ument_publish_date =3D "";=0AYAHOO.Shortcuts.document_author =3D "interz12@= yahoo.com";=0AYAHOO.Shortcuts.document_url =3D "";=0AYAHOO.Shortcuts.docume= nt_tags =3D "";=0AYAHOO.Shortcuts.annotationSet =3D {=0A"lw_1193323068_0": = {=0A"text": "interz12@yahoo.com",=0A"extended": 0,=0A"startchar": 304,=0A"e= ndchar": 321,=0A"start": 304,=0A"end": 321,=0A"extendedFrom": "",=0A"predic= tedCategory": "",=0A"predictionProbability": "0",=0A"weight": 1,=0A"type": = ["shortcuts:/us/instance/identifier/hyperlink/mailto"],=0A"category": ["IDE= NTIFIER"],=0A"context": "normal Original Message From ahnf interz12@yahoo.c= om To pgsql-jdbc@postgresql.org Sent Wednesday October",=0A"metaData": {=0A= "linkHref": "mailto:interz12@yahoo.com",=0A"linkProtocol": "mailto",=0A"lin= kYmailto": "mailto:interz12@yahoo.com"=0A}=0A },=0A"lw_1193323068_1": {=0A"= text": "pgsql-jdbc@postgresql.org",=0A"extended": 0,=0A"startchar": 424,=0A= "endchar": 448,=0A"start": 424,=0A"end": 448,=0A"extendedFrom": "",=0A"pred= ictedCategory": "",=0A"predictionProbability": "0",=0A"weight": 1,=0A"type"= : ["shortcuts:/us/instance/identifier/hyperlink/mailto"],=0A"category": ["I= DENTIFIER"],=0A"context": "Message From ahnf interz12@yahoo.com To pgsql-jd= bc@postgresql.org Sent Wednesday October 24 2007",=0A"metaData": {=0A"linkH= ref": "mailto:pgsql-jdbc@postgresql.org",=0A"linkProtocol": "mailto",=0A"li= nkYmailto": "mailto:pgsql-jdbc@postgresql.org"=0A}=0A }=0A};=0A=0AFYI, the = connection is non-readonly when I initially create it. After=0A doing a sel= ect, it becomes read-only and I have to manually set it back=0A to non-read= only. Is this normal???=0A=0A----- Original Message ----=0AFrom: ahnf =0ATo: pgsql-jdbc@postgresql.org=0ASent: Wednesday, October = 24, 2007 9:17:34 AM=0ASubject: [JDBC] ERROR transaction is read-only=0A=0A= =0A=0AI am using the postgresql-8.2.506.jdbc4.jar file =0A=0AMy jdbc connec= tions are setReadOnly(false)=0A=0AWhen attempting an insert I get =0A=0Aorg= .postgresql.util.PSQLException: ERROR: transaction is read-only=0A=0Aideas?= =0A=0A=0Aorg.postgresql.util.PSQLException: ERROR: transaction is read-only= =0A at=0A=0A org.postgresql.core.v3.QueryExecutorImpl.receiveErrorRespon= se(QueryExecutorImpl.java:1548)=0A at=0A=0A org.postgresql.core.v3.Query= ExecutorImpl.processResults(QueryExecutorImpl.java:1316)=0A at=0A=0A org= .postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191)= =0A at=0A=0A org.postgresql.jdbc2.AbstractJdbc2Statement.execute(Abstrac= tJdbc2Statement.java:452)=0A at=0A=0A org.postgresql.jdbc2.AbstractJdbc2= Statement.executeWithFlags(AbstractJdbc2Statement.java:351)=0A at=0A=0A = org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.= java:344)=0A=0A=0A=0A---------------------------(end of=0A broadcast)------= ---------------------=0ATIP 9: In versions below 8.0, the planner will igno= re your desire to=0A choose an index scan if your joining column's da= tatypes do not=0A match=0A=0A=0A=0A=0A=0A=0A=0A=0A