Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
0dbfea39
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,发现更多精彩内容 >>
提交
0dbfea39
编写于
6月 16, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove KSQO from GUC and move file to _deadcode.
上级
b50cbbd6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
11 addition
and
57 deletion
+11
-57
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+1
-29
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/planner.c
+1
-6
src/backend/optimizer/prep/Makefile
src/backend/optimizer/prep/Makefile
+2
-2
src/backend/optimizer/prep/_deadcode/prepkeyset.c
src/backend/optimizer/prep/_deadcode/prepkeyset.c
+3
-1
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+1
-6
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+0
-2
src/bin/psql/tab-complete.c
src/bin/psql/tab-complete.c
+2
-3
src/include/optimizer/planmain.h
src/include/optimizer/planmain.h
+1
-8
未找到文件。
doc/src/sgml/runtime.sgml
浏览文件 @
0dbfea39
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.11
8 2002/06/15 19:58:53
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.11
9 2002/06/16 00:09:11
momjian Exp $
-->
<Chapter Id="runtime">
...
...
@@ -759,34 +759,6 @@ env PGOPTIONS='-c geqo=off' psql
</listitem>
</varlistentry>
<varlistentry>
<term><varname>KSQO</varname> (<type>boolean</type>)</term>
<listitem>
<para>
The <firstterm>Key Set Query Optimizer</firstterm>
(<acronym>KSQO</acronym>) causes the query planner to convert
queries whose <literal>WHERE</> clause contains many OR'ed AND
clauses (such as <literal>WHERE (a=1 AND b=2) OR (a=2 AND b=3)
...</literal>) into a union query. This method can be faster
than the default implementation, but it doesn't necessarily give
exactly the same results, since <literal>UNION</> implicitly
adds a <literal>SELECT DISTINCT</> clause to eliminate identical
output rows. <acronym>KSQO</acronym> is commonly used when
working with products like <productname>Microsoft
Access</productname>, which tend to generate queries of this
form.
</para>
<para>
The <acronym>KSQO</acronym> algorithm used to be absolutely
essential for queries with many OR'ed AND clauses, but in
<productname>PostgreSQL</productname> 7.0 and later the standard
planner handles these queries fairly successfully; hence the
default is off.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>RANDOM_PAGE_COST</varname> (<type>floating point</type>)</term>
<listitem>
...
...
src/backend/optimizer/plan/planner.c
浏览文件 @
0dbfea39
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.12
0 2002/06/13 15:10:25 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.12
1 2002/06/16 00:09:11 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -145,11 +145,6 @@ subquery_planner(Query *parse, double tuple_fraction)
PlannerQueryLevel
++
;
PlannerInitPlan
=
NIL
;
#ifdef ENABLE_KEY_SET_QUERY
/* this should go away sometime soon */
transformKeySetQuery
(
parse
);
#endif
/*
* Check to see if any subqueries in the rangetable can be merged into
* this query.
...
...
src/backend/optimizer/prep/Makefile
浏览文件 @
0dbfea39
...
...
@@ -4,7 +4,7 @@
# Makefile for optimizer/prep
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Makefile,v 1.1
2 2000/08/31 16:10:13 petere
Exp $
# $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Makefile,v 1.1
3 2002/06/16 00:09:11 momjian
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -12,7 +12,7 @@ subdir = src/backend/optimizer/prep
top_builddir
=
../../../..
include
$(top_builddir)/src/Makefile.global
OBJS
=
prepqual.o preptlist.o prepunion.o
prepkeyset.o
OBJS
=
prepqual.o preptlist.o prepunion.o
all
:
SUBSYS.o
...
...
src/backend/optimizer/prep/prepkeyset.c
→
src/backend/optimizer/prep/
_deadcode/
prepkeyset.c
浏览文件 @
0dbfea39
...
...
@@ -8,7 +8,9 @@
*
*-------------------------------------------------------------------------
*/
/* THIS FILE WAS USED FOR KSQO, WHICH IS DISABLED NOW. bjm 2002-06-15 */
#include "postgres.h"
#include "optimizer/planmain.h"
...
...
src/backend/utils/misc/guc.c
浏览文件 @
0dbfea39
...
...
@@ -5,7 +5,7 @@
* command, configuration file, and command line options.
* See src/backend/utils/misc/README for more information.
*
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.
69 2002/05/17 20:32:29 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.
70 2002/06/16 00:09:12 momjian
Exp $
*
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
...
...
@@ -312,11 +312,6 @@ static struct config_bool
{
"enable_hashjoin"
,
PGC_USERSET
},
&
enable_hashjoin
,
true
,
NULL
,
NULL
},
{
{
"ksqo"
,
PGC_USERSET
},
&
_use_keyset_query_optimizer
,
false
,
NULL
,
NULL
},
{
{
"geqo"
,
PGC_USERSET
},
&
enable_geqo
,
true
,
NULL
,
NULL
...
...
src/backend/utils/misc/postgresql.conf.sample
浏览文件 @
0dbfea39
...
...
@@ -89,8 +89,6 @@
#enable_mergejoin = true
#enable_hashjoin = true
#ksqo = false
#effective_cache_size = 1000 # default in 8k pages
#random_page_cost = 4
#cpu_tuple_cost = 0.01
...
...
src/bin/psql/tab-complete.c
浏览文件 @
0dbfea39
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.
49 2002/06/15 19:43:47
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.
50 2002/06/16 00:09:12
momjian Exp $
*/
/*----------------------------------------------------------------------
...
...
@@ -226,7 +226,6 @@ psql_completion(char *text, int start, int end)
"enable_nestloop"
,
"enable_mergejoin"
,
"enable_hashjoin"
,
"ksqo"
,
"geqo"
,
"fsync"
,
"server_min_messages"
,
...
...
@@ -695,7 +694,7 @@ psql_completion(char *text, int start, int end)
COMPLETE_WITH_LIST
(
my_list
);
}
else
if
(
strcasecmp
(
prev2_wd
,
"GEQO"
)
==
0
||
strcasecmp
(
prev2_wd
,
"KSQO"
)
==
0
)
else
if
(
strcasecmp
(
prev2_wd
,
"GEQO"
)
==
0
)
{
char
*
my_list
[]
=
{
"ON"
,
"OFF"
,
"DEFAULT"
,
NULL
};
...
...
src/include/optimizer/planmain.h
浏览文件 @
0dbfea39
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: planmain.h,v 1.5
7 2002/05/18 02:25:50 tgl
Exp $
* $Id: planmain.h,v 1.5
8 2002/06/16 00:09:12 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -62,11 +62,4 @@ extern List *join_references(List *clauses, List *rtable,
Index
acceptable_rel
);
extern
void
fix_opids
(
Node
*
node
);
/*
* prep/prepkeyset.c
*/
extern
bool
_use_keyset_query_optimizer
;
extern
void
transformKeySetQuery
(
Query
*
origNode
);
#endif
/* PLANMAIN_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录