mirror of
https://github.com/postgres/postgres.git
synced 2025-12-04 12:02:48 +03:00
Minor ON CONFLICT related comments and doc fixes.
Geoff Winkless, Stephen Frost, Peter Geoghegan and me.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user