diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-10-09 16:35:07 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-10-09 16:35:07 +0000 |
commit | b15531033e8bcff1e0a436d6bd18b5a09e477a20 (patch) | |
tree | 1a5d247a13ef876972af178160f50bb537514b04 /src/pl/plpython/plpython.c | |
parent | 1b0f58a9ce29f36733a07c81aa4e05a016fc2a85 (diff) | |
download | postgresql-b15531033e8bcff1e0a436d6bd18b5a09e477a20.tar.gz postgresql-b15531033e8bcff1e0a436d6bd18b5a09e477a20.zip |
Fix overly tense optimization of PLpgSQL_func_hashkey: we must represent
the isTrigger state explicitly, not rely on nonzero-ness of trigrelOid
to indicate trigger-hood, because trigrelOid will be left zero when compiling
for validation. The (useless) function hash entry built by the validator
was able to match an ordinary non-trigger call later in the same session,
thereby bypassing the check that is supposed to prevent such a call.
Per report from Alvaro.
It might be worth suppressing the useless hash entry altogether, but
that's a bigger change than I want to consider back-patching.
Back-patch to 8.0. 7.4 doesn't have the problem because it doesn't
have validation mode.
Diffstat (limited to 'src/pl/plpython/plpython.c')
0 files changed, 0 insertions, 0 deletions