Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebWVA-0002Sp-Sf for pgsql-general@arkaria.postgresql.org; Tue, 16 Jan 2018 19:02:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebWV8-0000qm-Kb for pgsql-general@arkaria.postgresql.org; Tue, 16 Jan 2018 19:02:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ebVcT-0006Uq-1c for pgsql-general@lists.postgresql.org; Tue, 16 Jan 2018 18:05:57 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ebVcL-0006vk-1G for pgsql-general@postgresql.org; Tue, 16 Jan 2018 18:05:55 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ebVaB-0002BN-7H for pgsql-general@postgresql.org; Tue, 16 Jan 2018 19:03:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: adsj@novozymes.com (Adam =?utf-8?Q?Sj=C3=B8gren?=) 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 Lines: 104 Message-ID: <87efmpllwg.fsf@tullinup.koldfront.dk> References: <7pefuv53dl.fsf@novozymes.com> <871siqcdjh.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > 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