Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
05d56dee
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,体验更适合开发者的 AI 搜索 >>
提交
05d56dee
编写于
6月 07, 2016
作者:
H
Heikki Linnakangas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Misc whitespace fixes
上级
b1aa03e4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
18 deletion
+13
-18
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+13
-18
未找到文件。
src/backend/tcop/postgres.c
浏览文件 @
05d56dee
...
...
@@ -124,6 +124,7 @@ int max_stack_depth = 100;
int
PostAuthDelay
=
0
;
/* ----------------
* private variables
* ----------------
...
...
@@ -1281,13 +1282,13 @@ exec_mpp_query(const char *query_string,
(
errcode
(
ERRCODE_IN_FAILED_SQL_TRANSACTION
),
errmsg
(
"current transaction is aborted, "
"commands ignored until end of transaction block"
)));
/* Make sure we are in a transaction command */
start_xact_command
();
/* If we got a cancel signal in parsing or prior command, quit */
CHECK_FOR_INTERRUPTS
();
/*
* OK to analyze, rewrite, and plan this query.
*
...
...
@@ -1295,12 +1296,10 @@ exec_mpp_query(const char *query_string,
* these must outlive the execution context).
*/
oldcontext
=
MemoryContextSwitchTo
(
MessageContext
);
/* If we got a cancel signal in analysis or planning, quit */
CHECK_FOR_INTERRUPTS
();
/*
* Create unnamed portal to run the query or queries in. If there
* already is one, silently drop it.
...
...
@@ -1366,8 +1365,7 @@ exec_mpp_query(const char *query_string,
* error, not one and then the other.
*/
finish_xact_command
();
if
(
Debug_dtm_action
==
DEBUG_DTM_ACTION_FAIL_END_COMMAND
&&
CheckDebugDtmActionSqlCommandTag
(
commandTag
))
{
...
...
@@ -1382,7 +1380,6 @@ exec_mpp_query(const char *query_string,
* aborted by error will not send an EndCommand report at all.)
*/
EndCommand
(
completionTag
,
dest
);
}
/* end loop over parsetrees */
/*
...
...
@@ -1419,10 +1416,9 @@ exec_mpp_query(const char *query_string,
BackoffBackendEntryExit
();
}
debug_query_string
=
NULL
;
}
static
bool
CheckDebugDtmActionProtocol
(
DtxProtocolCommand
dtxProtocolCommand
,
DtxContextInfo
*
contextInfo
)
...
...
@@ -2011,10 +2007,10 @@ exec_parse_message(const char *query_string, /* string to execute */
(
errcode
(
ERRCODE_IN_FAILED_SQL_TRANSACTION
),
errmsg
(
"current transaction is aborted, "
"commands ignored until end of transaction block"
)));
/*
* Set up a snapshot if parse analysis/planning will need one.
*/
/*
* Set up a snapshot if parse analysis/planning will need one.
*/
if
(
analyze_requires_snapshot
(
parsetree
))
{
mySnapshot
=
CopySnapshot
(
GetTransactionSnapshot
());
...
...
@@ -2078,7 +2074,6 @@ exec_parse_message(const char *query_string, /* string to execute */
ActiveSnapshot
=
NULL
;
if
(
mySnapshot
)
FreeSnapshot
(
mySnapshot
);
}
else
{
...
...
@@ -2667,7 +2662,7 @@ exec_execute_message(const char *portal_name, int64 max_rows)
* Report query to various monitoring facilities.
*/
debug_query_string
=
sourceText
?
sourceText
:
"<EXECUTE>"
;
pgstat_report_activity
(
debug_query_string
);
set_ps_display
(
portal
->
commandTag
,
false
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录