Greg Stark <gsstark@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 =3D 120741 ?
0 rows.
> And secondly, what do you get if you do "select length(htmlblob) from
> tab where id =3D ?" which should work even if the toast data is broken.
bug=3D# select length(opis_szczeg) from promocje where id =3D 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_i=
tems('promocje_pkey',{}) as x ) as y"
[...]
psql bug -c select 11, (x).* from (select bt_page_items('promocje_pkey',1=
1) as x ) as y=20
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.
--=20
Rados=C5=82aw Zieli=C5=84ski <radek@pld-linux.org>