Don't invoke arbitrary code inside a possibly-aborted transaction.

Robert Haas <rhaas@postgresql.org>

Commit: 289992c462b504ffa289202ce8fc34a56b4048c3
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-01-24T13:57:10Z
Releases: 10.0
Don't invoke arbitrary code inside a possibly-aborted transaction.

The code here previously tried to call the partitioning operator, but
really the right thing to do (and the safe thing to do) is use
datumIsEqual().

Amit Langote, but I expanded the comment and fixed a compiler warning.

Files

PathChange+/−
src/backend/catalog/partition.c modified +14 −6
src/backend/utils/adt/datum.c modified +4 −0