Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
e8898e91
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e8898e91
编写于
5月 08, 2015
作者:
A
Andres Freund
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor ON CONFLICT related comments and doc fixes.
Geoff Winkless, Stephen Frost, Peter Geoghegan and me.
上级
53bb309d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
11 addition
and
11 deletion
+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
未找到文件。
doc/src/sgml/ref/insert.sgml
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
;
/* ----------------
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录