Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e8898e91
Commit
e8898e91
authored
May 08, 2015
by
Andres Freund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor ON CONFLICT related comments and doc fixes.
Geoff Winkless, Stephen Frost, Peter Geoghegan and me.
parent
53bb309d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
doc/src/sgml/ref/insert.sgml
doc/src/sgml/ref/insert.sgml
+2
-2
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam.c
+4
-4
src/backend/commands/trigger.c
src/backend/commands/trigger.c
+4
-4
src/include/nodes/execnodes.h
src/include/nodes/execnodes.h
+1
-1
No files found.
doc/src/sgml/ref/insert.sgml
View file @
e8898e91
...
...
@@ -76,7 +76,7 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
<para>
<literal>ON CONFLICT</> can be used to specify an alternative
action to raising a unique constraint or exclusion constraint
violation error
. (See <xref linkend="sql-on-conflict"
violation error. (See <xref linkend="sql-on-conflict"
endterm="sql-on-conflict-title"> below.)
</para>
...
...
@@ -397,7 +397,7 @@ INSERT INTO <replaceable class="PARAMETER">table_name</replaceable> [ AS <replac
<emphasis>unique index inference</emphasis> clause or an explicitly
named constraint can be used. For <literal>ON CONFLICT DO
NOTHING</literal>, it is optional to specify a
<parameter>conflict_target</parameter>; when om
m
itted, conflicts
<parameter>conflict_target</parameter>; when omitted, conflicts
with all usable constraints (and unique indexes) are handled. For
<literal>ON CONFLICT DO UPDATE</literal>, a conflict target
<emphasis>must</emphasis> be specified.
...
...
src/backend/access/heap/heapam.c
View file @
e8898e91
...
...
@@ -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.
...
...
src/backend/commands/trigger.c
View file @
e8898e91
...
...
@@ -66,10 +66,10 @@ int SessionReplicationRole = SESSION_REPLICATION_ROLE_ORIGIN;
static
int
MyTriggerDepth
=
0
;
/*
* Note that similar macros also exist
s
in executor/execMain.c. There does not
* appear to be any good header to put
it into, given the structures that i
t
*
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 tha
t
*
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)
...
...
src/include/nodes/execnodes.h
View file @
e8898e91
...
...
@@ -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
;
/* ----------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment