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: Tue, 16 Jan 2018 19:05:19 +0100
Message-ID: <87efmpllwg.fsf@tullinup.koldfront.dk> (raw)
References: <7pefuv53dl.fsf@novozymes.com>
	<871siqcdjh.fsf@tullinup.koldfront.dk>
	<SC1P15201MB2015B0AEF742D4D77E27D60EBCEA0@SC1P15201MB2015.LAMP152.PROD.OUTLOOK.COM>

  Hi Jorge,


This sounds very interesting - we are running PostgreSQL 9.3.20.

Did you ever find out exactly what the change that solved the problem
between 9.4.8 and 9.4.11 was?


  Best regards,

    Adam


Jorge writes:

> Hi Adam , I've been seeing this same  kind of Error in my clusters for a while .
>
> Is this running on postgresql 9.4.8? Because mine was fixed upgrading to 9.4.11 , a bug indeed .
>
>
>
> Kind regards
>
>
>
> Jorge Daniel Fernandez
>
>
> ________________________________
> From: Adam Sjøgren <adsj@novozymes.com>
> Sent: Tuesday, January 16, 2018 7:18 AM
> To: pgsql-general@postgresql.org
> Subject: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100
>
> We are seeing these "ERROR:  unexpected chunk number 0 (expected 1) for
> toast value 1498303849 in pg_toast_10919630" in increasing numbers again¹.
>
> An observation is that they seem to only happen for tsvector fields.
>
> Here is an example sequence of queries for a record (we have more than a
> handful of these currently), which exhibits the problem.
>
> First we get two other fields, 'sequence' is large enough to be toast'ed:
>
>   2018-01-16 08:51:17.362 efam=# select id,sequence from efam.sequence where id = 164504550;
>   Time: 1.150 ms
>
> No problem.
>
> Then we also fetch the tsvector field:
>
>   2018-01-16 08:51:27.773 efam=# select id,sequence,fts from efam.sequence where id = 164504550;
>   ERROR:  unexpected chunk number 0 (expected 1) for toast value 1498303849 in pg_toast_10919630
>   Time: 0.912 ms
>
> And we get the error.
>
> Getting the id and the tsvector:
>
>   2018-01-16 08:51:34.174 efam=# select id,fts from efam.sequence where id = 164504550;
>   ERROR:  unexpected chunk number 0 (expected 1) for toast value 1498303849 in pg_toast_10919630
>   Time: 6.138 ms
>
> gives the error.
>
> Just getting the tsvector:
>
>   2018-01-16 08:51:40.066 efam=# select fts from efam.sequence where id = 164504550;
>   ERROR:  unexpected chunk number 0 (expected 1) for toast value 1498303849 in pg_toast_10919630
>   Time: 1.805 ms
>
> Gives the error.
>
> Field definitions:
>
>    id                                        | integer                     |
>    sequence                                  | text                        |
>    fts                                       | tsvector                    |
>
> Maybe the observation that this only happens (for us) on tsvector rings
> a bell for someone?
>
>
>   Best regards,
>
>     Adam
>
>
> ¹ As reported back in June, 2017, starting here:
>   https://www.postgresql.org/message-id/7pefuv53dl.fsf%40novozymes.com
>   (I have to admit I never got around to trying to revert the commit
>   Alvaro Herrera suggested we try without
>   (https://www.postgresql.org/message-id/20170611033840.hruqadsk47qcdrqb%40alvherre.pgsql))
>
> --
>  "No more than that, but very powerful all the                Adam Sjøgren
>   same; simple things are good."                        adsj@novozymes.com
>
>

-- 
 "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: <87efmpllwg.fsf@tullinup.koldfront.dk>
Permalink:  ../87efmpllwg.fsf@tullinup.koldfront.dk/
Also on:    postgresql.org/message-id/87efmpllwg.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: <87efmpllwg.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>

* 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