diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-08 08:59:49 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-11-08 08:59:49 -0500 |
commit | 733e49ecff050f6520123fba469934426a788cfd (patch) | |
tree | fb168a838a48b515eb27d455c86249ba6c63951b /src/backend/access/gin/ginbtree.c | |
parent | 64f5962fe9d782c1c2b0baf9216ec301cac80dfa (diff) |
Fix subtly-wrong volatility checking in BeginCopyFrom().
contain_volatile_functions() is best applied to the output of
expression_planner(), not its input, so that insertion of function
default arguments and constant-folding have been done. (See comments
at CheckMutability, for instance.) It's perhaps unlikely that anyone
will notice a difference in practice, but still we should do it properly.
In passing, change variable type from Node* to Expr* to reduce the net
number of casts needed.
Noted while perusing uses of contain_volatile_functions().
Diffstat (limited to 'src/backend/access/gin/ginbtree.c')
0 files changed, 0 insertions, 0 deletions