Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfV8I-00028a-8B for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Sep 2016 16:46:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bfV8H-000832-Qw for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Sep 2016 16:46:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfSt8-0007Q8-Om for pgsql-bugs@postgresql.org; Thu, 01 Sep 2016 14:22:42 +0000 Received: from server907a.appriver.com ([204.232.250.39] helo=server907.appriver.com) by magus.postgresql.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bfSt4-0000aH-FU for pgsql-bugs@postgresql.org; Thu, 01 Sep 2016 14:22:41 +0000 X-Note-AR-ScanTimeLocal: 9/1/2016 10:22:34 AM X-Policy: whiteskycommunications.com - whiteskycommunications.com X-Policy: whiteskycommunications.com - whiteskycommunications.com X-Primary: spencer@whiteskycommunications.com X-Note: This Email was scanned by AppRiver SecureTide X-Note: SecureTide Build: 4/25/2016 6:59:12 PM UTC X-Virus-Scan: V- X-Note-SnifferID: 0 X-Note: TCH-CT/SI:0-70/SG:2 9/1/2016 10:22:21 AM X-GBUdb-Analysis: 0, 10.246.0.39, Ugly c=1 p=-0.989624 Source White X-Signature-Violations: 0-0-0-5176-c X-Note-419: 15.6485 ms. Fail:0 Chk:1320 of 1320 total X-Note: SCH-CT/SI:0-1320/SG:1 9/1/2016 10:22:34 AM X-Note: Spam Tests Failed: X-Country-Path: ->->PRIVATE-> X-Note-Sending-IP: 10.246.0.39 X-Note-Reverse-DNS: X-Note-Return-Path: spencer@whiteskycommunications.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G278 G279 G280 G281 G285 G286 G411 X-Note: Encrypt Rule Hits: X-Note: Mail Class: VALID X-Note: Headers Injected Received: from [10.246.0.39] (HELO smtp.us.exg7.exghost.com) by server907.appriver.com (CommuniGate Pro SMTP 6.1.7) with ESMTPS id 39188463; Thu, 01 Sep 2016 10:22:34 -0400 Received: from E16DN04A-S1E7.exg7.exghost.local (192.168.246.92) by E16DN04B-S1E7.exg7.exghost.local (192.168.246.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.17; Thu, 1 Sep 2016 10:22:34 -0400 Received: from E16DN04A-S1E7.exg7.exghost.local ([fe80::bcc0:34c9:6b42:3567]) by E16DN04A-S1E7.exg7.exghost.local ([fe80::bcc0:34c9:6b42:3567%22]) with mapi id 15.01.0544.017; Thu, 1 Sep 2016 10:22:33 -0400 From: Spencer Thomason To: Tom Lane CC: "pgsql-bugs@postgresql.org" Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild Thread-Topic: [BUGS] BUG #14295: Hot standby crash during tsvector rebuild Thread-Index: AQHR/4nIiu8hZDX2LECaOddUGrovKKBgenqAgASCD4A= Date: Thu, 1 Sep 2016 14:22:33 +0000 Message-ID: References: <20160826072658.15676.7628@wrigleys.postgresql.org> <21830.1472209531@sss.pgh.pa.us> <6FA6FDE7-5C60-4AB6-909D-7AB8039AEAD2@whiteskycommunications.com> In-Reply-To: <6FA6FDE7-5C60-4AB6-909D-7AB8039AEAD2@whiteskycommunications.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [71.118.181.145] x-exclaimer-md-config: 952e3d35-ca29-4b9e-94e1-a56fe70f6560 x-rerouted-by-exchange: Content-Type: text/plain; charset="us-ascii" Content-ID: <44DDB069DB607948BDC8B4790CA513E7@fwd7.exghost.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi Tom, I have a python script which simulates our production environment and so fa= r I have been able to replicate the failure on demand. What is the best wa= y to make this available? Also, I can make this sandbox environment available for remote access if th= at would help. Thanks! Spencer > On Aug 29, 2016, at 10:32 AM, Spencer Thomason wrote: >=20 > Hi Tom, > I'm working on labbing this up and hopefully I can replicate it outside o= f our production environment. >=20 > We have a text column that contains fair amount of text (e.g. generated f= rom a fax of maybe 10-25 pages) and then a tsvector column of that text wit= h a gin index. To improve performance, we delete text on the old records n= ightly. >=20 > This appears to be related to number of records updated and the size of t= he update to the tsvector column. Hopefully I can provide more details and= a test case soon. >=20 > Thanks, > Spencer >=20 >=20 >=20 >> On Aug 26, 2016, at 4:05 AM, Tom Lane wrote: >>=20 >> spencer@whiteskycommunications.com writes: >>> Logs from one of the replicas is below: >>> 2016-08-26 06:01:50 UTC FATAL: unexpected GIN leaf action: 0 >>> 2016-08-26 06:01:50 UTC CONTEXT: xlog redo Insert item, node: >>> 1663/16387/33108 blkno: 6622 isdata: T isleaf: T 3 segments: 2 (add 0 i= tems) >>> 0 unknown action 0 ??? >>=20 >> Hmm, we have seen a couple of reports of that recently but have not been >> able to track it down. Can you provide more details about what you're >> doing that triggers it? Maybe even a self-contained test case? It >> doesn't have to be one that fails every time, as long as it'll fail >> occasionally. >>=20 >> regards, tom lane >=20 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs