Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0dbfea39
Commit
0dbfea39
authored
Jun 16, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove KSQO from GUC and move file to _deadcode.
parent
b50cbbd6
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
57 deletions
+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
No files found.
doc/src/sgml/runtime.sgml
View file @
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
View file @
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
View file @
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
View file @
0dbfea39
...
...
@@ -9,6 +9,8 @@
*-------------------------------------------------------------------------
*/
/* 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
View file @
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
View file @
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
View file @
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
View file @
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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment