From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: scott@deltaex.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14769: Logical replication error "cache lookup failed for type 0"
Date: Mon, 7 Aug 2017 10:54:13 -0400
Message-ID: <ec84927a-6e4a-8452-33ad-43b9a8552879@2ndquadrant.com> (raw)
In-Reply-To: <66cde4f0-7b4c-30a5-e4b6-acebda59b00f@2ndquadrant.com>
References: <20170802235927.8423.44538@wrigleys.postgresql.org>
<66cde4f0-7b4c-30a5-e4b6-acebda59b00f@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, petr.jelinek@2ndquadrant.com, scott@deltaex.com
Subject: Re: BUG #14769: Logical replication error "cache lookup failed for type 0"
In-Reply-To: <ec84927a-6e4a-8452-33ad-43b9a8552879@2ndquadrant.com>
References: <20170802235927.8423.44538@wrigleys.postgresql.org> <66cde4f0-7b4c-30a5-e4b6-acebda59b00f@2ndquadrant.com> <ec84927a-6e4a-8452-33ad-43b9a8552879@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox