Hi,
> We are getting the bellow error while trying use Logical Replication with
> user defined data types in a C program (when call elog function).
>
> ERROR: XX000: cache lookup failed for type XXXXX
>
Sorry for continuously disturbing in this topic, but am I missing something here?
I mean that in case of type's OID in PUBLICATION host does not exists in SUBSCRIPTION host's pg_type,
it could returns unintended error (the XX000 above) when elog or ereport is executed.
For more details, it happen in slot_store_error_callback when it try to call format_type_be(localtypoid) for
errcontext.
slot_store_error_callback is set in slot_store_cstrings, slot_modify_cstrings function and it also be unset here, so
theeffect here is small but it happens.
---
Thanks and best regards,
Dang Minh Huong
NEC Solution Innovators, Ltd.
http://www.nec-solutioninnovators.co.jp/en/