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 1iXnVC-0003Os-Bl for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Nov 2019 14:32:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXnVB-0001cx-76 for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Nov 2019 14:32:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXnVA-0001cd-OI for pgsql-bugs@lists.postgresql.org; Thu, 21 Nov 2019 14:32:08 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iXnV7-0004DM-Sz for pgsql-bugs@lists.postgresql.org; Thu, 21 Nov 2019 14:32:07 +0000 Received: by mail-wr1-x444.google.com with SMTP id y11so1565911wrt.6 for ; Thu, 21 Nov 2019 06:32:05 -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=bmSBEpyKupchE3TJZ4JXc+22fRHXpQud/BANYMvcgJc=; b=Vtv9BwPLAbwOTPjIH002RkDIKk1MqNS7C+H5tVBt4YlkULT6BDtASeKcJxhjZGEg3L +luOOLAMkApKGVdMQ0I/z27hKNWwinBnMRxqPNO0XT7WpYwm1+ChuN+F9RGAyLMbDXj6 6pWPxiuHIMTX0WBcSSl/yV8J2HFVLBdCtt0mVYLg+IIm6nLgjUByUUNsMjOQLNTmKXOG SxeO72GsV5dJcXS9x1/IS50rWsmoXneiP7sWtrbrjn53mA0X9GMRmvft6pZ5arip+zZ0 8rTyhCyIMqwNB92L8BG0jKR5ee5JG6l18hW5MItOW7Po0GHZqHNmlr56L6j1wdHqIlij m21Q== 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=bmSBEpyKupchE3TJZ4JXc+22fRHXpQud/BANYMvcgJc=; b=fsBl65RCEo3DdxWbLDstJXKQjzHwvUBkR+vIh8K3oyLCnJfJ+biRuyCJ4a0+cJSEmr qs4ETdZOEdvoi86NgP+r60EFYe+i/R0FPg1EwVb3I76LKqvxRkiwiNQGGS9CFWpZofbK 2OYcsR1YQKwrYb8Y7LYEhETjB+HlWj31+nnvcJ2pj5vFhOYcgVWD5oVLJyo5r73VKg/K fm0x0tIkBDgaC8rb2HsH4gqELFwmvXbsAENNHMW/b7l37pftZrWzxkhkesM9xH1oPpym 8DKyMmxyfwT8E3dm4A10S9DM+vPIdoqWC2wU0rYVaK3+SlMqy8cXVz2iabTtsQmax6yh 5itA== X-Gm-Message-State: APjAAAUWjduNM1PicT3DFu4u7Z2J0Lq5jrPa1aRSBurReN3QqW5JfUKs h2kiYXZJy3DB1gLbMO1S95gQDzyUcco= X-Google-Smtp-Source: APXvYqy5nmgP1p2Kfk9dIhH6N9aTiA+vUBbkpBlUIzelzlcWIcmEoeERy29zwPE624QALuPO6KN9Zw== X-Received: by 2002:a5d:4982:: with SMTP id r2mr11186061wrq.254.1574346724379; Thu, 21 Nov 2019 06:32:04 -0800 (PST) Received: from localhost (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id r15sm3662406wrc.5.2019.11.21.06.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 06:32:00 -0800 (PST) Date: Thu, 21 Nov 2019 15:31:59 +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: <20191121143159.zlaxfp7kzjcsyydn@development> References: <16129-a0c0f48e71741e5f@postgresql.org> <20191121103940.gpadc7xmssl63sad@development> <20191121115326.arierrbeok6we5sv@core.my.home> <20191121125930.or5fhpi2yjgkmjye@development> <20191121131202.xhi5hxvdjjfvbmop@core.my.home> <20191121133714.dezdkhqjuzejoegb@development> <20191121134645.vrezfwccclnurh5k@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: <20191121134645.vrezfwccclnurh5k@core.my.home> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 21, 2019 at 02:46:45PM +0100, Ondřej Jirman wrote: >On Thu, Nov 21, 2019 at 02:37:14PM +0100, Tomas Vondra wrote: >> 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. > >I would, but how? > >SELECT * FROM pg_logical_slot_peek_changes('l5_hometv', NULL, NULL, > 'proto_version', '1', 'publication_names', 'pub'); >ERROR: logical decoding output plugin "pgoutput" produces binary output, but >function "pg_logical_slot_peek_changes(name,pg_lsn,integer,text[])" expects >textual data > Ah, right. Sorry, I forgot this is pgoutput. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services