Skip site navigation (1) Skip section navigation (2)

Re: 8.4.0 data loss / HOT-related bug

From: Radoslaw Zielinski <radek(at)pld-linux(dot)org>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: 8.4.0 data loss / HOT-related bug
Date: 2009-08-22 16:27:09
Message-ID: 20090822162709.GA2492@bzium (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Greg Stark <gsstark(at)mit(dot)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


> 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 <radek(at)pld-linux(dot)org>

In response to


pgsql-bugs by date

Next:From: Radoslaw ZielinskiDate: 2009-08-22 16:30:43
Subject: Re: 8.4.0 data loss / HOT-related bug
Previous:From: Robert HaasDate: 2009-08-21 19:58:37
Subject: Re: When Drop Table or alter Table I need restart service Posgresql - 8.1 ?????

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group