On 2019-04-11 19:11, Kyotaro HORIGUCHI wrote:
> Hello.
>
> The cause is stale cast function id in cached expression of
> plpgsql. (get_cast_hashentry)
>
> Happens since 9.5 to 11. Once happens, the symptom persists
> until session-end. Doesn't happen on 9.4 since it doesn't cache
> cast expressions. 12 invalidates cached cast expressions
> (04fe805a17).
>
> It seems to me possible that a cast calls a wrong function and
> leads to a crash. But I don't come up with a good way to fix
> this, but applying a part of the patch 04fe805a17 on 11(.2) seems
> working.
>
> regards.
Hello,
Thank you! The patch works.
--
regards,
Roman Zharkov