diff options
author | Robert Haas | 2017-03-03 03:37:41 +0000 |
---|---|---|
committer | Robert Haas | 2017-03-03 03:39:52 +0000 |
commit | 5a73e17317e91912b2755f7960d5bf31d374cf31 (patch) | |
tree | 9df368817ebdf24e6eca7a2a47dbccdbc67808b0 /src/include/catalog/partition.h | |
parent | be6ed6451c693d9121d357996cbc21b06058b9c1 (diff) |
Improve error reporting for tuple-routing failures.
Currently, the whole row is shown without column names. Instead,
adopt a style similar to _bt_check_unique() in ExecFindPartition()
and show the failing key: (key1, ...) = (val1, ...).
Amit Langote, per a complaint from Simon Riggs. Reviewed by me;
I also adjusted the grammar in one of the comments.
Discussion: http://postgr.es/m/[email protected]
Diffstat (limited to 'src/include/catalog/partition.h')
-rw-r--r-- | src/include/catalog/partition.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/catalog/partition.h b/src/include/catalog/partition.h index b195d1a5ab4..421644ca775 100644 --- a/src/include/catalog/partition.h +++ b/src/include/catalog/partition.h @@ -85,8 +85,14 @@ extern List *RelationGetPartitionQual(Relation rel); extern PartitionDispatch *RelationGetPartitionDispatchInfo(Relation rel, int lockmode, int *num_parted, List **leaf_part_oids); +extern void FormPartitionKeyDatum(PartitionDispatch pd, + TupleTableSlot *slot, + EState *estate, + Datum *values, + bool *isnull); extern int get_partition_for_tuple(PartitionDispatch *pd, TupleTableSlot *slot, EState *estate, - Oid *failed_at); + PartitionDispatchData **failed_at, + TupleTableSlot **failed_slot); #endif /* PARTITION_H */ |