Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id AAE3D9F969B for ; Mon, 20 Aug 2007 00:54:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 50047-05 for ; Mon, 20 Aug 2007 00:54:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 428029F9693 for ; Mon, 20 Aug 2007 00:54:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l7K3s90j003127; Sun, 19 Aug 2007 23:54:10 -0400 (EDT) To: "Kathy Lo" cc: pgsql-jdbc@postgresql.org Subject: Re: "pg_toast_2772_index" problem In-reply-to: References: Comments: In-reply-to "Kathy Lo" message dated "Mon, 20 Aug 2007 11:36:11 +0800" Date: Sun, 19 Aug 2007 23:54:09 -0400 Message-ID: <3126.1187582049@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/83 X-Sequence-Number: 17396 "Kathy Lo" writes: > When I insert a record into a table using JDBC, I got the following exception: > org.postgresql.util.PSQLException: ERROR: index "pg_toast_27722_index" > is not a btree You have a data-corruption problem. If the error shown here is the *only* issue then you could fix it with REINDEX, but the $64 question is whether anything else has been corrupted. > I am using the following: > Fedora Core 4 > Postgresql 8.0.3 > Tomcat 5.5.17 > JDBC postgresql-8.1.409.jdbc3.jar I can't speak to Tomcat or JDBC, but Red Hat stopped supporting FC4 quite some time ago, and PG 8.0.3 is ancient also. You need to update your software. regards, tom lane