From: r.zharkov@postgrespro.ru
To: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15746: cache lookup failed for function in plpgsql block
Date: Fri, 12 Apr 2019 10:22:09 +0700
Message-ID: <30da20dabeb7171ab31bf066caf69e7f@postgrespro.ru> (raw)
In-Reply-To: <20190411.211113.08508498.horiguchi.kyotaro@lab.ntt.co.jp>
References: <15746-6e0482a4c0f915cb@postgresql.org>
<20190411.211113.08508498.horiguchi.kyotaro@lab.ntt.co.jp>
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
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: r.zharkov@postgrespro.ru, horiguchi.kyotaro@lab.ntt.co.jp
Subject: Re: BUG #15746: cache lookup failed for function in plpgsql block
In-Reply-To: <30da20dabeb7171ab31bf066caf69e7f@postgrespro.ru>
References: <15746-6e0482a4c0f915cb@postgresql.org> <20190411.211113.08508498.horiguchi.kyotaro@lab.ntt.co.jp> <30da20dabeb7171ab31bf066caf69e7f@postgrespro.ru>
* 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