Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D12159FA2D3 for ; Wed, 24 Oct 2007 15:23:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 58379-08 for ; Wed, 24 Oct 2007 15:22:54 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web36615.mail.mud.yahoo.com (web36615.mail.mud.yahoo.com [209.191.85.32]) by postgresql.org (Postfix) with SMTP id 0604F9FA2C6 for ; Wed, 24 Oct 2007 15:23:01 -0300 (ADT) Received: (qmail 56124 invoked by uid 60001); 24 Oct 2007 18:23:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=uaqxmOhqe9Pc46sMV1fdSGPswbFGYvMZ9TzoPTVow3pd9T97tbIP0lDydhJBM22uj5Dys+YW4VH+PTrpP+nOXiN7jD2YpTtbEWbcUGFKqNuXKY1OS8WBlYim2xgPzE7WpvfiCjrr/qnum8f/13UekY0aOu6ONB6W+AmKmSJiHMM=; X-YMail-OSG: tqrwaXsVM1lJf3Lv9Y__v317TdAIGZHIfYrzt7uZyDjyBr0Jg4uWamAdMTWr84_icQg.VZp_nQ-- Received: from [207.40.214.40] by web36615.mail.mud.yahoo.com via HTTP; Wed, 24 Oct 2007 11:22:59 PDT X-Mailer: YahooMailRC/814.06 YahooMailWebService/0.7.134.12 Date: Wed, 24 Oct 2007 11:22:59 -0700 (PDT) From: interz12@yahoo.com Subject: Re: ERROR transaction is read-only To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <321385.55928.qm@web36615.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/131 X-Sequence-Number: 17703 =0AFYI, the connection is non-readonly when I initially create it. After=0A= doing a select, it becomes read-only and I have to manually set it back=0A= to non-readonly. Is this normal???=0A=0A----- Original Message ----=0AFrom= : ahnf =0ATo: pgsql-jdbc@postgresql.org=0ASent: Wednesd= ay, 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 connections are setReadOnly(false)=0A=0AWhen attempting an insert I ge= t =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 org.postgresql.core.v3.QueryExecutorImpl.receiveEr= rorResponse(QueryExecutorImpl.java:1548)=0A at=0A org.postgresql.core.v3= .QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316)=0A at=0A = org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191= )=0A at=0A org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJ= dbc2Statement.java:452)=0A at=0A org.postgresql.jdbc2.AbstractJdbc2State= ment.executeWithFlags(AbstractJdbc2Statement.java:351)=0A at=0A org.post= gresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:344= )=0A=0A=0A=0A---------------------------(end of=0A broadcast)--------------= -------------=0ATIP 9: In versions below 8.0, the planner will ignore your = desire to=0A choose an index scan if your joining column's datatypes = do not=0A match=0A=0A=0A