diff options
author | Tom Lane | 2018-06-11 16:08:09 +0000 |
---|---|---|
committer | Tom Lane | 2018-06-11 16:08:15 +0000 |
commit | be3d90026a3c17c7e6cc23d52430c37df403d869 (patch) | |
tree | e97e0e1ba3d13e146007934104173c0987327909 /src/backend/executor/nodeModifyTable.c | |
parent | 387543f7bdf0f1ca3dc06e6bb5c9ef7980cf9f44 (diff) |
Fix run-time partition pruning code to handle NULL values properly.
The previous coding just ignored pruning constraints that compare a
partition key to a null-valued expression. This is silly, since really
what we can do there is conclude that all partitions are rejected: the
pruning operator is known strict so the comparison must always fail.
This also fixes the logic to not ignore constisnull for a Const comparison
value. That's probably an unreachable case, since the planner would
normally have simplified away a strict operator with a constant-null input.
But this code has no business assuming that.
David Rowley, per a gripe from me
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions