Greg Stark <gsst...@mit.edu> [2009-08-21 20:30]:
[...]
> Actually I mean the key for the toast table.

> Let me ask firstly do you get anything if you just do select * from
> pg_toast.pg_toast_29644 where chunk_id = 120741 ?

0 rows.

> And secondly, what do you get if you do "select length(htmlblob) from
> tab where id = ?" which should work even if the toast data is broken.

  bug=# select length(opis_szczeg) from promocje where id = 4300;
  ERROR:  missing chunk number 0 for toast value 120741 in pg_toast_29644

> To dump the index -- this will be tedious, but:

  $ seq 11 | xargs -ti psql bug -c "select {}, (x).* from (select 
bt_page_items('promocje_pkey',{}) as x ) as y"
  [...]
  psql bug -c select 11, (x).* from (select bt_page_items('promocje_pkey',11) 
as x ) as y 
  ERROR:  block number out of range

Output: http://radek.cc/promocje_bpi.txt.gz

[...]
> If you find any such rows send them and they might tell us what's
> going on or where to look for the missing toast records to see what's
> going on.

No luck.

-- 
Radosław Zieliński <ra...@pld-linux.org>

Attachment: pgp6X6jh1ZCdU.pgp
Description: PGP signature

Reply via email to