Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dejQF-0001Ca-SE for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Aug 2017 14:54:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dejQF-0007Sa-Ee for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Aug 2017 14:54:23 +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 1dejQE-0007Mz-BG for pgsql-bugs@postgresql.org; Mon, 07 Aug 2017 14:54:22 +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 1dejQ7-0005KW-K3 for pgsql-bugs@postgresql.org; Mon, 07 Aug 2017 14:54:21 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9B1B820D34; Mon, 7 Aug 2017 10:54:14 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Mon, 07 Aug 2017 10:54:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=VPS8ftFvEfLk6g9v7sYLiB2KeumdRftdq6juL5RxikM=; b=Uhq/1sOS TWE6t7q3UAlhH3IbH3uNN5AYUCFEaboa4HGjv/Nl+SuzQ0PC6wPbHfFwj4Kzl6z2 Wi8yH2zdeB0UWtUem+cKVn5h0O7EwWUmSaoa5jfGIzk/JI7lG1cFnXjvYJ7n5p0I 7VLLeuHF62Y4luAD7Bkl9xb52xMuZoWQI6IRH5G6qzP4T2xuQlp2fSFBU8bhU/uf M70P9RyDq7C7jMtvARu+dVkZV0KKxtK9kFdO9D4ujJWQdHDIKKJc/LDiNBvqIKNv RCWvm0s8hd1bx+UzwkCOt/U5ieavWM3h5JMteUGPVo/PoKDZa+avPjMN8EQplX5d PtZhtCDiffKi1A== X-ME-Sender: X-Sasl-enc: 8xlgcYZucgG3jQsjQgOdhNLH/UinMUyT9lsWsdj666de 1502117654 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 56A567E16E; Mon, 7 Aug 2017 10:54:14 -0400 (EDT) Subject: Re: BUG #14769: Logical replication error "cache lookup failed for type 0" To: Petr Jelinek , scott@deltaex.com, pgsql-bugs@postgresql.org References: <20170802235927.8423.44538@wrigleys.postgresql.org> <66cde4f0-7b4c-30a5-e4b6-acebda59b00f@2ndquadrant.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 7 Aug 2017 10:54:13 -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: <66cde4f0-7b4c-30a5-e4b6-acebda59b00f@2ndquadrant.com> 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 8/4/17 05:41, Petr Jelinek wrote: >> Perhaps there's a missing check against pg_attribute.attisdropped >> somewhere? >> > > Good catch! Looks like we didn't initialize the attribute map for > locally dropped columns. fixed > Once I did that I found there is also typo in > slot_modify_cstrings() which uses wrong value from the remote side, that > is also made visible by your example. and fixed and added a test case -- 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