TOAST error in 7.4.2 on frequently truncated tables

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема TOAST error in 7.4.2 on frequently truncated tables
Дата
Msg-id 200408242152.48084.josh@agliodbs.com
обсуждение исходный текст
Ответы Re: TOAST error in 7.4.2 on frequently truncated tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
People,

Here's another:

Summary:  TOAST error on frequently truncated tables
Version: 7.4.2
Severity: Abort
Platform: Red Hat 9.0
When running a script against a reporting database, I'm getting the following:

DBD::Pg::st execute failed: ERROR:  expected both swapped tables to have TOAST
tables at sql_data_xfer.pl line 120, <STDIN> line 2.
Process Failed:  from step SELECT count(*) FROM elbs_client;Process Failed:
from step SELECT count(*) FROM elbs_client;
1 at sql_data_xfer.pl line 120, <STDIN> line 2.

What's happening in the scipt is that it's checking for the presence of data
in load tables and truncating them if data is found.   I'm not absolutely
certain whether it is the COUNT(*) query, or the TRUNCATE step which is
producing the above error; TRUNCATE would seem more reasonable given the
nature of the error.

I've searched the source code, and the only reference to the error I can find
is for CLUSTER, which is confusing because none of the tables involved are
clustered.

Is this related to the index problem fixed in 7.4.x?

--
Josh Berkus
Aglio Database Solutions
San Francisco

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Backward compatibility issue with 8.0b1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: TOAST error in 7.4.2 on frequently truncated tables