Re: [BUGS] BUG #14769: Logical replication error "cache lookup failedfor type 0" - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: [BUGS] BUG #14769: Logical replication error "cache lookup failedfor type 0"
Date
Msg-id ec84927a-6e4a-8452-33ad-43b9a8552879@2ndquadrant.com
Whole thread Raw
In response to Re: [BUGS] BUG #14769: Logical replication error "cache lookup failedfor type 0"  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Responses Re: [BUGS] BUG #14769: Logical replication error "cache lookup failedfor type 0"  (Scott Milliken <scott@deltaex.com>)
List pgsql-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

pgsql-bugs by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: [BUGS] BUG #14772: psql autocommit does not work
Next
From: Peter Eisentraut
Date:
Subject: Re: [BUGS] Crash report for some ICU-52 (debian8) COLLATE andwork_mem values