git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: bfd17f9) | patch
plpgsql's exec_simple_cast_value() mistakenly supposed that it could bypass
Thu, 2 Apr 2009 01:16:11 +0000 (01:16 +0000)
Thu, 2 Apr 2009 01:16:11 +0000 (01:16 +0000)
commit 24a814f44174db591fff3992d7ae8f457388cb35
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.
src/pl/plpgsql/src/pl_exec.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /