summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund2015-05-08 16:00:01 +0000
committerAndres Freund2015-05-08 17:24:14 +0000
commite8898e9169c851c2b8c98f981c1c4755a5758f8e (patch)
tree58f806e29a38e17e49838da4fa7d8c73dd8f996e /src
parent53bb309d2d5a9432d2602c93ed18e58bd2924e15 (diff)
Minor ON CONFLICT related comments and doc fixes.
Geoff Winkless, Stephen Frost, Peter Geoghegan and me.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/heap/heapam.c8
-rw-r--r--src/backend/commands/trigger.c8
-rw-r--r--src/include/nodes/execnodes.h2
3 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index 7ea9a77e7ea..1a8d2f2d0b5 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -2068,10 +2068,10 @@ FreeBulkInsertState(BulkInsertState bistate)
* Speculatively inserted tuples behave as "value locks" of short duration,
* used to implement INSERT .. ON CONFLICT.
*
- * Note that these options will be applied when inserting into the heap's
- * TOAST table, too, if the tuple requires any out-of-line data.
- * FIXME: Do we mark TOAST tuples as speculative too? What about confirming
- * or aborting them?
+ * Note that most of these options will be applied when inserting into the
+ * heap's TOAST table, too, if the tuple requires any out-of-line data. Only
+ * HEAP_INSERT_IS_SPECULATIVE is explicitly ignored, as the toast data does
+ * not partake in speculative insertion.
*
* The BulkInsertState object (if any; bistate can be NULL for default
* behavior) is also just passed through to RelationGetBufferForTuple.
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index b537ca5e661..d9b9587f1e6 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -66,10 +66,10 @@ int SessionReplicationRole = SESSION_REPLICATION_ROLE_ORIGIN;
static int MyTriggerDepth = 0;
/*
- * Note that similar macros also exists in executor/execMain.c. There does not
- * appear to be any good header to put it into, given the structures that it
- * uses, so we let them be duplicated. Be sure to update both if one needs to
- * be changed, however.
+ * Note that similar macros also exist in executor/execMain.c. There does not
+ * appear to be any good header to put them into, given the structures that
+ * they use, so we let them be duplicated. Be sure to update all if one needs
+ * to be changed, however.
*/
#define GetUpdatedColumns(relinfo, estate) \
(rt_fetch((relinfo)->ri_RangeTableIndex, (estate)->es_range_table)->updatedCols)
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 210dbe4a534..9de6d1484eb 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -1108,7 +1108,7 @@ typedef struct ModifyTableState
List *mt_arbiterindexes; /* unique index OIDs to arbitrate taking alt path */
TupleTableSlot *mt_existing; /* slot to store existing target tuple in */
List *mt_excludedtlist; /* the excluded pseudo relation's tlist */
- TupleTableSlot *mt_conflproj; /* FIXME*/
+ TupleTableSlot *mt_conflproj; /* CONFLICT ... SET ... projection target */
} ModifyTableState;
/* ----------------