Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebVWx-0007EG-9h for pgsql-general@arkaria.postgresql.org; Tue, 16 Jan 2018 18:00:16 +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 1ebVWw-0006H3-HW for pgsql-general@arkaria.postgresql.org; Tue, 16 Jan 2018 18:00:14 +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 1ebVUn-00007I-Jx for pgsql-general@lists.postgresql.org; Tue, 16 Jan 2018 17:58:02 +0000 Received: from mail-oln040092006045.outbound.protection.outlook.com ([40.92.6.45] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ebVUj-0006k0-3A for pgsql-general@postgresql.org; Tue, 16 Jan 2018 17:57:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5pe7yLwuqDF0wxDFPMWRupDqUdWyshhQfQ3sMELGknw=; b=IOQgfOL+wtUvlfw7JeA24+ZxPVS4BNxjmxeVcs8nyqXE2mHK8vTmrDzT1MOpHoI7fkB0owB1Xum97SUdVxNxdoaFUMivX/OuvhC3y/G7q5foEvWqDEhoQCgyTKKz745TamVUskJvAMaoUKy924Zuuln4bPZm2R7mqb++bovwA+J/dt2QiWDaO52ySpra45MIIZtVM94O4VW7UU3Qr06I89fF8ro+9sYUPxtxFULuQkFFy/5KcZ9J5z23URONYZ91+6sFQql5O+eMiL3y786Z1ZVj8YnjrhMWX1Kkp+qdTpssyPLYEuK4YWspQYTD8emThHyD2ld/qEgLiil29f6nWA== Received: from DM3NAM03FT010.eop-NAM03.prod.protection.outlook.com (10.152.82.52) by DM3NAM03HT207.eop-NAM03.prod.protection.outlook.com (10.152.83.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.19; Tue, 16 Jan 2018 17:57:54 +0000 Received: from SC1P15201MB2015.LAMP152.PROD.OUTLOOK.COM (10.152.82.59) by DM3NAM03FT010.mail.protection.outlook.com (10.152.82.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.19 via Frontend Transport; Tue, 16 Jan 2018 17:57:54 +0000 Received: from SC1P15201MB2015.LAMP152.PROD.OUTLOOK.COM ([10.165.129.9]) by SC1P15201MB2015.LAMP152.PROD.OUTLOOK.COM ([10.165.129.9]) with mapi id 15.20.0407.012; Tue, 16 Jan 2018 17:57:53 +0000 From: Jorge Daniel To: =?iso-8859-1?Q?Adam_Sj=F8gren?= , "pgsql-general@postgresql.org" Subject: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100 Thread-Topic: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100 Thread-Index: AQHTjtyCMm0hBecVs020Kh30uvsvbKN2yMWR Date: Tue, 16 Jan 2018 17:57:53 +0000 Message-ID: References: <7pefuv53dl.fsf@novozymes.com>,<871siqcdjh.fsf@tullinup.koldfront.dk> In-Reply-To: <871siqcdjh.fsf@tullinup.koldfront.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:BFD5767EE9D78A75DF25CCC3D7303C198708117865B84030CB2F5F60A5B68A08;UpperCasedChecksum:01403EA6AB75E49F7DCCCE746000B1AA41AE2D0C81BF2481E145138DEDABA105;SizeAsReceived:7172;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [QwnhvDYCraGe0FBDCPePEraHhqtH5Aja] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM3NAM03HT207;6:OKsEqXgKCMiTdr1tTL4iJ/vOkHRy+V6gkOJ/ZJ4xqyz3DLNw93/bDVrLJqakHwkvz4InQC6Unajdow+uaZM6PdE124iULFWt1VxYZpoXUPmEZ+RuJEJFNMcx2mF53p5ssCcz192cwYmm2tjp3bTh2wei/aD+e85UCgyx8d2HT42kjfFrGaCaCfeYz/vZNr203BidOrMfiV9cKHZaZ8k5ONw+kRHYTK9z9NBQ6mcGnYiPLaxZUi2Johf0rp5DsTN06Ec1wZWoKRD+cuB13xOND03O5lrJWCwKpS5Xixd8o/0BFNKcqA8//+3Z28a4/YJR/k5JmYUBVBnuO40u1qG2NE3s93YPKc+TKzJtg7pH2sc=;5:OfCJXrA8vY7+pdlmwIE9uPiXMvblzcQW2q/LXg9tjZH9CxwWEQEubIlzkFBvOLgv1QtNEaSmoK0I6BuyAwTV1Rj28btWzhIj2TtVPxIcKXpOUEYr9I4vbpWi5CX7DZsMpijryxcPFeU94Nx+GTgJ5l170DsezeiP/bvftcA7Sb4=;24:J2tiFyzcq4qNCNnCtJdFzeh22C7JIBIdIptiDhkxHMQ6Nu0S2ftiXNoIv/p1ZBSVrJQ+LzYWUmRLy4bRwqjT+vLQA8h+mbvCUr5iXiIHWx4=;7:+i9M5lxq76gcS3vhTdTt2Wek3/UFmEIOny72Nj3Qw8JBMQ+nfY5FqrGsgp37eap+bYS0PnaLtUcxupxbomEKuPawdXH9ps8wBjUE/ws8k+XYBa2WGjy8RbYiuzY3gy0feZJXmLU4YWhPfxyD++uo/+GVf8H9W+pPl8hlmyuyrKdFRe9S1i4H6QtB+c04ufwDdrSRvjgQqrK1mGu0QjgoSQXOHBvL4hZ78U0kcdc1V6v8uzyZfEyrVsgpiUj261Ep x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045);SRVR:DM3NAM03HT207; x-ms-traffictypediagnostic: DM3NAM03HT207: x-ms-office365-filtering-correlation-id: 7ae46282-9e7a-4f6e-e35d-08d55d0aaabd x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:DM3NAM03HT207;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM3NAM03HT207; x-forefront-prvs: 0554B1F54F x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:DM3NAM03HT207;H:SC1P15201MB2015.LAMP152.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_SC1P15201MB2015B0AEF742D4D77E27D60EBCEA0SC1P15201MB2015_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ae46282-9e7a-4f6e-e35d-08d55d0aaabd X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2018 17:57:53.7795 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3NAM03HT207 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_SC1P15201MB2015B0AEF742D4D77E27D60EBCEA0SC1P15201MB2015_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Adam , I've been seeing this same kind of Error in my clusters for a wh= ile . 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=F8gren 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=B9= . 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=3D# select id,sequence from efam.sequence wh= ere id =3D 164504550; Time: 1.150 ms No problem. Then we also fetch the tsvector field: 2018-01-16 08:51:27.773 efam=3D# select id,sequence,fts from efam.sequenc= e where id =3D 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=3D# select id,fts from efam.sequence where i= d =3D 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=3D# select fts from efam.sequence where id = =3D 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 =B9 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%40= alvherre.pgsql)) -- "No more than that, but very powerful all the Adam Sj=F8gre= n same; simple things are good." adsj@novozymes.com --_000_SC1P15201MB2015B0AEF742D4D77E27D60EBCEA0SC1P15201MB2015_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Adam , I've been seeing this s= ame  kind of Error in my clusters for a while .

Is this running on postgresq= l 9.4.8? Because mine was fixed upgrading to 9.4.11 , a bug indeed . <= /p>



Kind regards 

 

Jorge Daniel Fernandez 



From: Adam Sj=F8gren <ad= sj@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 aga= in=B9.

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=3D# select id,sequence from efam.sequen= ce where id =3D 164504550;
  Time: 1.150 ms

No problem.

Then we also fetch the tsvector field:

  2018-01-16 08:51:27.773 efam=3D# select id,sequence,fts from efam.se= quence where id =3D 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=3D# select id,fts from efam.sequence wh= ere id =3D 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=3D# select fts from efam.sequence where= id =3D 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          =             &nb= sp;            =      | integer       = ;            &n= bsp; |
   sequence         =             &nb= sp;            | tex= t            &n= bsp;           |
   fts          = ;            &n= bsp;            = ;    | tsvector       &nb= sp;            |
Maybe the observation that this only happens (for us) on tsvector rings
a bell for someone?


  Best regards,

    Adam


=B9 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%40alv= herre.pgsql))

--
 "No more than that, but very powerful all the   &= nbsp;            Ada= m Sj=F8gren
  same; simple things are good."     &nb= sp;            =       adsj@novozymes.com


--_000_SC1P15201MB2015B0AEF742D4D77E27D60EBCEA0SC1P15201MB2015_--