diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-04-02 01:16:11 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-04-02 01:16:11 +0000 |
commit | 24a814f44174db591fff3992d7ae8f457388cb35 (patch) | |
tree | f955c313e884ce4703a948505da7d31eedf8a025 /src/backend/executor/nodeMergejoin.c | |
parent | bfd17f94b6f9215fac28a0008de72294756b7f01 (diff) | |
download | postgresql-24a814f44174db591fff3992d7ae8f457388cb35.tar.gz postgresql-24a814f44174db591fff3992d7ae8f457388cb35.zip |
plpgsql's exec_simple_cast_value() mistakenly supposed that it could bypass
casting effort whenever the input value was NULL. However this prevents
application of not-null domain constraints in the cases that use this
function, as illustrated in bug #4741. Since this function isn't meant
for use in performance-critical paths anyway, this certainly seems like
another case of "premature optimization is the root of all evil".
Back-patch as far as 8.2; older versions made no effort to enforce
domain constraints here anyway.
Diffstat (limited to 'src/backend/executor/nodeMergejoin.c')
0 files changed, 0 insertions, 0 deletions