Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
94952948
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,发现更多精彩内容 >>
提交
94952948
编写于
10月 07, 2000
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Second thoughts about where to put DeferredTriggerEndQuery() call.
上级
fbd26d69
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
13 deletion
+12
-13
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+12
-13
未找到文件。
src/backend/tcop/postgres.c
浏览文件 @
94952948
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.17
8 2000/10/07 00:58:18
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.17
9 2000/10/07 04:00:41
tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -597,10 +597,9 @@ pg_plan_query(Query *querytree)
*
* Assumptions:
*
* Caller is responsible for calling StartTransactionCommand() beforehand
* and CommitTransactionCommand() afterwards (if successful).
* At call, we are not inside a transaction command.
*
* The CurrentMemoryContext a
t entry references a context that is
* The CurrentMemoryContext a
fter starting a transaction command must be
* appropriate for execution of individual queries (typically this will be
* TransactionCommandContext). Note that this routine resets that context
* after each individual query, so don't store anything there that
...
...
@@ -608,7 +607,7 @@ pg_plan_query(Query *querytree)
*
* parse_context references a context suitable for holding the
* parse/rewrite trees (typically this will be QueryContext).
* This context *must* be longer-lived than the
CurrentMemoryC
ontext!
* This context *must* be longer-lived than the
transaction c
ontext!
* In fact, if the query string might contain BEGIN/COMMIT commands,
* parse_context had better outlive TopTransactionContext!
*
...
...
@@ -635,7 +634,7 @@ pg_exec_query_string(char *query_string, /* string to execute */
* query_string will be in this same command block, *unless* we find
* a BEGIN/COMMIT/ABORT statement; we have to force a new xact command
* after one of those, else bad things will happen in xact.c.
* (Note that this will possibly change
execution
memory context.)
* (Note that this will possibly change
current
memory context.)
*/
start_xact_command
();
xact_started
=
true
;
...
...
@@ -837,11 +836,6 @@ pg_exec_query_string(char *query_string, /* string to execute */
if
(
!
isTransactionStmt
)
CommandCounterIncrement
();
/*
* Invoke IMMEDIATE constraint triggers
*/
DeferredTriggerEndQuery
();
/*
* Clear the execution context to recover temporary
* memory used by the query. NOTE: if query string contains
...
...
@@ -888,12 +882,17 @@ start_xact_command(void)
static
void
finish_xact_command
(
void
)
{
/* Invoke IMMEDIATE constraint triggers */
DeferredTriggerEndQuery
();
/* Now commit the command */
if
(
DebugLvl
>=
1
)
elog
(
DEBUG
,
"CommitTransactionCommand"
);
set_ps_display
(
"commit"
);
/* XXX probably the wrong place to do this */
CommitTransactionCommand
();
#ifdef SHOW_MEMORY_STATS
/*
p
rint mem stats at each commit for leak tracking */
/*
P
rint mem stats at each commit for leak tracking */
if
(
ShowStats
)
MemoryContextStats
(
TopMemoryContext
);
#endif
...
...
@@ -1614,7 +1613,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.17
8 $ $Date: 2000/10/07 00:58:18
$
\n
"
);
puts
(
"$Revision: 1.17
9 $ $Date: 2000/10/07 04:00:41
$
\n
"
);
}
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录