Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXme9-0001LM-HG for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Nov 2019 13:37:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXme8-0001WO-9E for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Nov 2019 13:37:20 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXme8-0001WH-1f for pgsql-bugs@lists.postgresql.org; Thu, 21 Nov 2019 13:37:20 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXme5-0002M6-7c for pgsql-bugs@lists.postgresql.org; Thu, 21 Nov 2019 13:37:19 +0000 Received: by mail-wm1-x343.google.com with SMTP id 8so3771064wmo.0 for ; Thu, 21 Nov 2019 05:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=KuGSi/fkpukizAmcZ7LytvB6w928dn3Aik3CcdkwgvM=; b=ItUlHPFm/xKraKOe6XopWMlqvy2i5L+waK52uiZG+wH4JL+Ivi5nhavYSRp/dI2DQt bArgnLPGmGvWfs0w7j1Lyv5roijJLEoNsfU/d4bYalaJDnhYulgWD8gPNyXg7cdWGwc1 h+sBZjgjTKxAnYl/+puXP/mTPShoLJUk+BYrN+ZWyM5IlzWfuOEi/0c8Ja21hZWPUahb OVkHwYvD6P20Hiunj48C0zpcgFkoQNCYKiSXrSXHoqbk/ayS4tSp/DvvnNZUWJ4mzx11 /hTgDBRKZdYbk5KRJfDKjhWSUmGihZhqY8x3Ea3dPa0DK3TKJ02CSrZqwD5adzvjNAWs 2DEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=KuGSi/fkpukizAmcZ7LytvB6w928dn3Aik3CcdkwgvM=; b=AwtwGMmbVcl/mp8TRFZM+yLtJRV3zBacpambXQX9WlLlZj8GXp35V+ATiG84teszc7 1+8VQXLBPtCaadHWAfXLY0cE4Wn3FZezPSQCUDlzfMeh7ib9NPd/y2hAug7EfjXMCeeh uwfQorOLPSwQ3huCyieGrPDt7XDj36tbl77owl5heYq5zy7nyUo9VovnfcJHCTy6b+BA dTVI2QMavM5qdDBB+WTTCpgRGn7HGXCl+Zzo97v0IGISunk2N4TAlaj+n3GkAqzNXyYy /7J0Chwx3f3dxdZmuzt4xJmUFERiwBkcYRHlZK0Bu62BASK9Ndi4bPnF25t0hin/rj04 G6/w== X-Gm-Message-State: APjAAAVFUK98ujE+Hl1udWyfp/GmuiLaBvNzG+Qih2MuUh+LfNpPa644 hVjd6egGEaWV8KBpKnRPv3UX35EfgsA= X-Google-Smtp-Source: APXvYqxTj4MzgV7RX7qolfM3nYXE+U726f+hSQu7TaqPTzkBbSm0GGKQocc6Elb8FfHUDKhpB0YQ7g== X-Received: by 2002:a05:600c:2054:: with SMTP id p20mr10310301wmg.177.1574343436525; Thu, 21 Nov 2019 05:37:16 -0800 (PST) Received: from localhost (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id k125sm3198110wmf.2.2019.11.21.05.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 05:37:15 -0800 (PST) Date: Thu, 21 Nov 2019 14:37:14 +0100 From: Tomas Vondra To: =?utf-8?Q?Ond=C5=99ej?= Jirman Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16129: Segfault in tts_virtual_materialize in logical replication worker Message-ID: <20191121133714.dezdkhqjuzejoegb@development> References: <16129-a0c0f48e71741e5f@postgresql.org> <20191121103940.gpadc7xmssl63sad@development> <20191121115326.arierrbeok6we5sv@core.my.home> <20191121125930.or5fhpi2yjgkmjye@development> <20191121131202.xhi5hxvdjjfvbmop@core.my.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191121131202.xhi5hxvdjjfvbmop@core.my.home> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 21, 2019 at 02:12:02PM +0100, Ondřej Jirman wrote: >On Thu, Nov 21, 2019 at 01:59:30PM +0100, Tomas Vondra wrote: >> On Thu, Nov 21, 2019 at 12:53:26PM +0100, Ondřej Jirman wrote: >> > >> > ... >> > >> OK, so this is the problematic table. Any idea what operation triggers >> the issue? Having a small reproducer (say, a single-row insert or so) >> would be very helpful. > >Can something be extracted from the logical decoding data I sent in the other >e-mail? That seems to contain the failing operation, but I don't know how to >decode it off the top of my head from that binary representation. > Well, why not use pg_logical_slot_peek_changes()? That should be human readable, I think. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services