diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-04-02 01:16:17 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-04-02 01:16:17 +0000 |
commit | 5dde1db4e1ae336b5fa2cff3a82ec8bfc10562d4 (patch) | |
tree | dee4e26d65889d65cc0732ca16f57747948b501b /src/backend/access/gist/gistsplit.c | |
parent | 591cbf673baa92498890914311e7f498d46f2dad (diff) | |
download | postgresql-5dde1db4e1ae336b5fa2cff3a82ec8bfc10562d4.tar.gz postgresql-5dde1db4e1ae336b5fa2cff3a82ec8bfc10562d4.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/access/gist/gistsplit.c')
0 files changed, 0 insertions, 0 deletions