Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcg2Z-0002o9-8v for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Aug 2017 22:53:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dcg2Y-0001Xs-3X for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Aug 2017 22:53: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 1dcg1q-0000JD-Tt for pgsql-bugs@postgresql.org; Tue, 01 Aug 2017 22:52:43 +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 1dcg1j-0002FW-HT for pgsql-bugs@postgresql.org; Tue, 01 Aug 2017 22:52:41 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 75C7A20B60; Tue, 1 Aug 2017 18:52:34 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 01 Aug 2017 18:52:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=ZQ2Rh+lO+JwKbgj3x8 wWcIdV0IJj90vf0c2lHymEAvg=; b=Qj6dkI0o0BL3Fbpnkj8iIm3jE5lnG0Z4aw TvFYB1h0GegzmW4TYd19ZvQJDYSVj2egRelwEpvZO/X7vYGifYykkG9eXHYX9tYA 3WxNG1u3+FSR898A32NzGGOob9A9x242Wy2WfbUo8IMyEhhQTNAmIlXuIRzMmVEu rUHLdYhYpEThla2U1j+c1qm/sgUkMjRt1W27lKHXVsmkq31p16s1OMx3yYNNCTyR RfOPR6LtDnEp0d2CUrRVSsv605kSEAqSLUgM0YmhMJ6aefDwEyYIbxpv/RxCNZyA LqT1xAcNqxYlx5zKA9NAhHrg7O8Dc1a48IIQby+ZjMdVsPU2rjCQ== X-ME-Sender: X-Sasl-enc: OIXr+EAZbA9XC+gnDlGnARHbkRkvwak9ZpK/eIPYK+c2 1501627954 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 39F0B241D9; Tue, 1 Aug 2017 18:52:34 -0400 (EDT) Date: Tue, 1 Aug 2017 15:52:32 -0700 From: Andres Freund To: Peter Eisentraut Cc: Masahiko Sawada , scott@deltaex.com, pgsql-bugs Subject: Re: BUG #14758: Segfault with logical replication on a function index Message-ID: <20170801225232.csedyabn6rifsrx6@alap3.anarazel.de> References: <20170724072240.1457.88066@wrigleys.postgresql.org> <31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31777fcd-3e65-2f50-3c53-ea7f48b5b9cc@2ndquadrant.com> 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 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. - Andres -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs