[COMMITTERS] pgsql: Don't invoke arbitrary code inside a possibly-abortedtransactio - Mailing list pgsql-committers

From Robert Haas
Subject [COMMITTERS] pgsql: Don't invoke arbitrary code inside a possibly-abortedtransactio
Date
Msg-id E1cW1ew-0007wn-41@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/289992c462b504ffa289202ce8fc34a56b4048c3

Modified Files
--------------
src/backend/catalog/partition.c | 20 ++++++++++++++------
src/backend/utils/adt/datum.c   |  4 ++++
2 files changed, 18 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: [COMMITTERS] pgsql: Fix interaction of partitioned tables with BulkInsertState.
Next
From: Robert Haas
Date:
Subject: [COMMITTERS] pgsql: Remove unused variable.