pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: adsj@novozymes.com
To: pgsql-general@postgresql.org
Subject: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100
Date: Thu, 05 Apr 2018 22:27:04 +0200
Message-ID: <87y3i1flgn.fsf@tullinup.koldfront.dk> (raw)
References: <7pefuv53dl.fsf@novozymes.com>
	<871siqcdjh.fsf@tullinup.koldfront.dk>
	<SC1P15201MB2015B0AEF742D4D77E27D60EBCEA0@SC1P15201MB2015.LAMP152.PROD.OUTLOOK.COM>
	<87efmpllwg.fsf@tullinup.koldfront.dk>
	<20180117025021.GA39977@paquier.xyz>
	<874lnlc6ja.fsf@tullinup.koldfront.dk>
	<7632.1516209379@sss.pgh.pa.us>
	<87k1tlel41.fsf@tullinup.koldfront.dk>
	<17892.1522942621@sss.pgh.pa.us>
	<877eplej3o.fsf@tullinup.koldfront.dk>

Adam writes:

>   efamroot@kat efam=# explain select chunk_id, chunk_seq, ctid, xmin, xmax, length(chunk_data) from pg_toast.pg_toast_10919630 where chunk_id = 1698936148 order by 1,2;
>                                        QUERY PLAN                                      
>   -------------------------------------------------------------------------------------
>    Sort  (cost=96465280.57..96470619.75 rows=2135674 width=54)
>      Sort Key: chunk_seq
>      ->  Seq Scan on pg_toast_10919630  (cost=0.00..96240754.39 rows=2135674 width=54)
>            Filter: (chunk_id = 1698936148::oid)
>   (4 rows)
>
>   efamroot@kat efam=# select chunk_id, chunk_seq, ctid, xmin, xmax, length(chunk_data) from pg_toast.pg_toast_10919630 where chunk_id = 1698936148 order by 1,2;
>   [... still waiting for the result, I will return with what it said
>        when the server does ...]

It did eventually finish, with the same result:

  efamroot@kat efam=# select chunk_id, chunk_seq, ctid, xmin, xmax, length(chunk_data) from pg_toast.pg_toast_10919630 where chunk_id = 1698936148 order by 1,2;
    chunk_id  | chunk_seq |     ctid     |    xmin    | xmax | length 
  ------------+-----------+--------------+------------+------+--------
   1698936148 |         0 | (52888694,2) | 1511390221 |    0 |   1996
   1698936148 |         1 | (52888694,4) | 1511390221 |    0 |   1148
  (2 rows)


  Best regards,

    Adam

-- 
 "No more than that, but very powerful all the                Adam Sjøgren
  same; simple things are good."                        adsj@novozymes.com





view thread (58+ messages)  latest in thread

Message-ID: <87y3i1flgn.fsf@tullinup.koldfront.dk>
Permalink:  ../87y3i1flgn.fsf@tullinup.koldfront.dk/
Also on:    postgresql.org/message-id/87y3i1flgn.fsf@tullinup.koldfront.dk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adsj@novozymes.com
  Subject: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100
  In-Reply-To: <87y3i1flgn.fsf@tullinup.koldfront.dk>
  References: <7pefuv53dl.fsf@novozymes.com> <871siqcdjh.fsf@tullinup.koldfront.dk> <SC1P15201MB2015B0AEF742D4D77E27D60EBCEA0@SC1P15201MB2015.LAMP152.PROD.OUTLOOK.COM> <87efmpllwg.fsf@tullinup.koldfront.dk> <20180117025021.GA39977@paquier.xyz> <874lnlc6ja.fsf@tullinup.koldfront.dk> <7632.1516209379@sss.pgh.pa.us> <87k1tlel41.fsf@tullinup.koldfront.dk> <17892.1522942621@sss.pgh.pa.us> <877eplej3o.fsf@tullinup.koldfront.dk> <87y3i1flgn.fsf@tullinup.koldfront.dk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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