pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
"pg_toast_2772_index" problem 2+ messages / 2 participants [nested] [flat]
* "pg_toast_2772_index" problem @ 2007-08-20 03:36 Kathy Lo <kathy.lo.ky@gmail.com> 2007-08-20 03:54 ` Re: "pg_toast_2772_index" problem Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: Kathy Lo @ 2007-08-20 03:36 UTC (permalink / raw) To: pgsql-jdbc 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 I am using the following: Fedora Core 4 Postgresql 8.0.3 Tomcat 5.5.17 JDBC postgresql-8.1.409.jdbc3.jar The structure of the table is like the following: one column = bigint, not null, foreign key about 10 columns = varchar about 10-15 columns = Text When I insert a record without values in "Text" columns, OK! When I insert a record containing values in almost all "Text" columns, FAILED! -- Kathy Lo ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: "pg_toast_2772_index" problem 2007-08-20 03:36 "pg_toast_2772_index" problem Kathy Lo <kathy.lo.ky@gmail.com> @ 2007-08-20 03:54 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2007-08-20 03:54 UTC (permalink / raw) To: Kathy Lo <kathy.lo.ky@gmail.com>; +Cc: pgsql-jdbc "Kathy Lo" <kathy.lo.ky@gmail.com> 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-08-20 03:54 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2007-08-20 03:36 "pg_toast_2772_index" problem Kathy Lo <kathy.lo.ky@gmail.com> 2007-08-20 03:54 ` Tom Lane <tgl@sss.pgh.pa.us>
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