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