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 1if5fl-0007qu-KR for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Dec 2019 17:21:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1if5fk-0001YE-Ai for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Dec 2019 17:21:12 +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 1if5fk-0001XV-2i; Wed, 11 Dec 2019 17:21:12 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if5ff-0004Uz-Aq; Wed, 11 Dec 2019 17:21:11 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7747E469; Wed, 11 Dec 2019 12:21:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 11 Dec 2019 12:21:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=R37HoMlb4Y3HmkyGwOeVJxLJMlP kMGjhiUl6DzqGN8Q=; b=XRkDWnJF4eNy1+lk4fupqxQnujb2Omn8zD+QH2PgSht KZlV7erKrB6QaYheJFNhMuQM5b2Mm8i1tcklI0oEqM4X7XyXwfH3T5qxPe/EXunx hyyNtkLQ1IqMOU/pQKTYRo8JA8HAXpTRfwipqlJiErcEYF2uypuR7KhG6PqGxLYU au+e8idvBV99ABgLONQiPhm1SxJ3QWkNA0rAn10CKythUJRYRXFgknaRuwo0j/6A SRz+p/oqPxeKpGM2e4bqyp5Ojq0hR3o1vRSM6mL4n56sqoCYRGQ6syMoY1TVU85Y NHdmJFMS0xz67GYoNOndoikuUlkV8sSiIRO9PISihtA== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=R37HoM lb4Y3HmkyGwOeVJxLJMlPkMGjhiUl6DzqGN8Q=; b=Gg+1rS9y557A+1Pt4+aLNe NevMcXK/AxiXx3jaW+1+O/dMjEafeqN6nAnn36gn+i2aVqis37PnLWyHRDRGuyrr N8XPMAN735oltapErJS3ehpkrAlgBdv5MMN7i02h/1RldVvl0kotWmH5l/JO8p8e +VrIjtNrnr9reXX4/9ngl8dXtXTtt8XYAxRsySA63glilGDZ+F/UJr+muklFHE7u W+kUrXkLkCWaRtgqFeHjN0kvEOipei12PQq1UHEDfmwvIXpJzvUXadW9zkg0CUDS 3GGjXyakUCmIjv4siTGaQzJV8BO0oS8vmmPrnz8f4zdibjwUtW2K0oWiVQ6ClK7w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelhedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudekrddvfeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 81DFB30600D4; Wed, 11 Dec 2019 12:21:02 -0500 (EST) Date: Wed, 11 Dec 2019 09:21:01 -0800 From: Andres Freund To: Tom Lane Cc: "Drouvot, Bertrand" , Tomas Vondra , "pgsql-bugs@postgresql.org" , PostgreSQL-development , "Schneider (AWS), Jeremy" Subject: Re: logical decoding bug: segfault in ReorderBufferToastReplace() Message-ID: <20191211172101.k55jz364chv77ewh@alap3.anarazel.de> References: <20191205133836.lulisfo2fphdrjp3@development> <20191211163522.t2ljtydarlmusoix@alap3.anarazel.de> <19042.1576084263@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19042.1576084263@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-12-11 12:11:03 -0500, Tom Lane wrote: > I don't think you can make that conclusion. Perhaps the table once > needed a toast table because of some wide column that got dropped; > if so, it'd still have one. It'd be safer to look at > pg_class.reltoastrelid to verify existence (or not) of the toast relation. That was checked in the email I was responding to. > It strikes me that there could easily be cases where a publisher table > has a toast relation and a subscriber's doesn't ... maybe this code > isn't expecting that? This code is all running on the publisher side, so I don't think it could matter. Greetings, Andres Freund