]> granicus.if.org Git - postgresql/commit
Fix array coercion expressions to ensure that the correct volatility is
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Mar 2007 23:21:12 +0000 (23:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Mar 2007 23:21:12 +0000 (23:21 +0000)
commitbf94076348ef7e0a81e3fe4ededb2fdcd14b303b
treee513ac49a62f2fbde540bbc57b3e162d7ff13624
parent87564ffc6a87c6cdcc669472892be2ef0870a0f3
Fix array coercion expressions to ensure that the correct volatility is
seen by code inspecting the expression.  The best way to do this seems
to be to drop the original representation as a function invocation, and
instead make a special expression node type that represents applying
the element-type coercion function to each array element.  In this way
the element function is exposed and will be checked for volatility.
Per report from Guillaume Smet.
24 files changed:
src/backend/catalog/dependency.c
src/backend/executor/execQual.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/backend/optimizer/path/costsize.c
src/backend/optimizer/util/clauses.c
src/backend/parser/parse_coerce.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_func.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/ri_triggers.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/fmgr/fmgr.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/nodes/execnodes.h
src/include/nodes/nodes.h
src/include/nodes/primnodes.h
src/include/parser/parse_coerce.h
src/include/utils/array.h
src/pl/plpgsql/src/pl_exec.c