Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcdmQ-000382-KT for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Aug 2017 20:28:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dcdmQ-0002uw-7B for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Aug 2017 20:28:38 +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 1dcdmP-0002sE-BF for pgsql-bugs@postgresql.org; Tue, 01 Aug 2017 20:28:37 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcdmL-0005zE-Uf for pgsql-bugs@postgresql.org; Tue, 01 Aug 2017 20:28:36 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5A60D20872; Tue, 1 Aug 2017 16:28:32 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 01 Aug 2017 16:28:32 -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=GYghstx8sNCcxQxX6zw3DzQuABbYTQ9ACb/k2K5Hq9g=; b=iIFYGLdX dJboYugeccWPhSsSeAiN0gj2/TXJpzulvLlmlbonwQSUdg7mTLkwKvhNTuv7zqLM ov4dvOriyxGuL7oTfEH/oRJLU0LGl66cWFhguNfaVveLmYH8Gtn9vEROq+j6ebJM X0shwbarimMceIdY6JqAd42m0pulXby5NSGYk1Uq1bTzwpvl/f7WfkwHoSfMCtyk qUOZphp/SpiHsmwNMAaGbRp9GBlGOH6jieoO5xIbix1Ben4fwyxp4t091KWUfHUi edPMYr2FDFA/AD8IE/W3wWhBlyNhSASWsvQA0u6DxG+PV6IoClTumjWJdTDvWSx4 /eXraecXk7DXkw== X-ME-Sender: X-Sasl-enc: inxZztnyp2fHJ6HxeJq71C6xkKeZyuoBEPpg1FfH0Gth 1501619312 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 1C9782456C; Tue, 1 Aug 2017 16:28:32 -0400 (EDT) Subject: Re: BUG #14758: Segfault with logical replication on a function index To: Masahiko Sawada , scott@deltaex.com References: <20170724072240.1457.88066@wrigleys.postgresql.org> Cc: pgsql-bugs From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com> Date: Tue, 1 Aug 2017 16:28:31 -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 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()? -- 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