Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
cd7206b2
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,发现更多精彩内容 >>
提交
cd7206b2
编写于
4月 24, 1997
作者:
V
Vadim B. Mikheev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable to set _cpu_page_wight_ & _cpu_index_page_wight_ via
SET cost_heap(cost_index) TO ...
上级
0a08f2b2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
54 addition
and
1 deletion
+54
-1
src/backend/tcop/variable.c
src/backend/tcop/variable.c
+54
-1
未找到文件。
src/backend/tcop/variable.c
浏览文件 @
cd7206b2
...
...
@@ -2,7 +2,7 @@
* Routines for handling of 'SET var TO', 'SHOW var' and 'RESET var'
* statements.
*
* $Id: variable.c,v 1.
5 1997/04/23 06:09:36
vadim Exp $
* $Id: variable.c,v 1.
6 1997/04/24 15:41:37
vadim Exp $
*
*/
...
...
@@ -11,6 +11,11 @@
#include "postgres.h"
#include "miscadmin.h"
#include "tcop/variable.h"
#include "utils/builtins.h"
#include "optimizer/internal.h"
extern
Cost
_cpu_page_wight_
;
extern
Cost
_cpu_index_page_wight_
;
/*-----------------------------------------------------------------------*/
#if USE_EURODATES
...
...
@@ -64,6 +69,50 @@ static bool reset_null(const char *value)
return
TRUE
;
}
static
bool
parse_cost_heap
(
const
char
*
value
)
{
float32
res
=
float4in
((
char
*
)
value
);
_cpu_page_wight_
=
*
res
;
return
TRUE
;
}
static
bool
show_cost_heap
()
{
elog
(
NOTICE
,
"COST_HEAP is %f"
,
_cpu_page_wight_
);
return
TRUE
;
}
static
bool
reset_cost_heap
()
{
_cpu_page_wight_
=
_CPU_PAGE_WEIGHT_
;
return
TRUE
;
}
static
bool
parse_cost_index
(
const
char
*
value
)
{
float32
res
=
float4in
((
char
*
)
value
);
_cpu_index_page_wight_
=
*
res
;
return
TRUE
;
}
static
bool
show_cost_index
()
{
elog
(
NOTICE
,
"COST_INDEX is %f"
,
_cpu_index_page_wight_
);
return
TRUE
;
}
static
bool
reset_cost_index
()
{
_cpu_index_page_wight_
=
_CPU_INDEX_PAGE_WEIGHT_
;
return
TRUE
;
}
static
bool
parse_date
(
const
char
*
value
)
{
char
tok
[
32
];
...
...
@@ -149,6 +198,10 @@ struct VariableParsers
{
{
"datestyle"
,
parse_date
,
show_date
,
reset_date
},
{
"timezone"
,
parse_null
,
show_null
,
reset_null
},
{
"cost_heap"
,
parse_cost_heap
,
show_cost_heap
,
reset_cost_heap
},
{
"cost_index"
,
parse_cost_index
,
show_cost_index
,
reset_cost_index
},
{
NULL
,
NULL
,
NULL
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录