Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcvhk-0005xv-F0 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Aug 2017 15:37:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dcvhk-0008VL-0k for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Aug 2017 15:37:00 +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 1dcvhj-0008VC-K4 for pgsql-bugs@postgresql.org; Wed, 02 Aug 2017 15:36:59 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcvhg-0006jc-Bd for pgsql-bugs@postgresql.org; Wed, 02 Aug 2017 15:36:58 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1097220921; Wed, 2 Aug 2017 11:36:55 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 02 Aug 2017 11:36:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=95gi2apC4yGUNloyvtXo71MSi4oEEXlJeaVAg/54B0I=; b=SnhXwPFD HVw1HYdmSF18wUAsHujWhMClQa6eWP4i2/tytVmD2roCsfcW48Bl//VqZr/bYDzo DJ+0vHetOA7aFjExD+WbuiAjWJkBo8gREm7WXgVHHqAS1TC+5bXfDD+hwvloe6VM S2Hl/vSVeKQ23gBFfpyGY4arNB55j9a375E2IizA7v1tNjdVvi2RZvdYQzFVA689 nbyOAjo78Lanj5gl13pUvpxYR1c5lKX6E02WWNbLIGc8zez42LFLZLpDWlK0H4Fn 6YvOYzFtrAXTsvLDhqLRlQxWWj4M6txZ9E/bSebdUjsMEsjtYZYqvDSAN/hmnH57 sNP5Db9fLrkmAQ== X-ME-Sender: X-Sasl-enc: qLRZv3vQqhJl76ombrpJM/4taTbg/fPEKbbFgjBjFur6 1501688214 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id B256F2473A; Wed, 2 Aug 2017 11:36:54 -0400 (EDT) Subject: Re: BUG #14758: Segfault with logical replication on a function index To: Masahiko Sawada , Andres Freund References: <20170724072240.1457.88066@wrigleys.postgresql.org> <31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com> <20170801225232.csedyabn6rifsrx6@alap3.anarazel.de> Cc: Scott Milliken , pgsql-bugs From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <14897772-f4d9-296e-d20f-12fcbf5e1331@2ndquadrant.com> Date: Wed, 2 Aug 2017 11:36:54 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 8/1/17 21:23, Masahiko Sawada wrote: > On Wed, Aug 2, 2017 at 7:52 AM, Andres Freund wrote: >> On 2017-08-01 16:28:31 -0400, Peter Eisentraut wrote: >>> On 7/28/17 06:07, Masahiko Sawada wrote: >>>> I could reproduced this issue and it seems to me that the cause of >>>> this is that the table sync worker didn't get a snapshot before >>>> starting table copy. Attached patch fixes this problem. >>> >>> Should it be GetTransactionSnapshot() rather than GetLatestSnapshot()? >> >> Don't think it makes a meaningful difference here, but I agree it's more >> consistent. > > +1. committed with that change -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs