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
e46df2ff
Commit
e46df2ff
authored
Aug 07, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPTIMIZER_DEBUG additions.
parent
af5fde74
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
44 deletions
+42
-44
src/backend/optimizer/README
src/backend/optimizer/README
+1
-0
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/allpaths.c
+4
-3
src/backend/optimizer/plan/initsplan.c
src/backend/optimizer/plan/initsplan.c
+2
-5
src/backend/optimizer/plan/planmain.c
src/backend/optimizer/plan/planmain.c
+9
-4
src/backend/optimizer/util/clauses.c
src/backend/optimizer/util/clauses.c
+1
-3
src/tools/backend/flow.fig
src/tools/backend/flow.fig
+8
-12
src/tools/backend/flow.jpg
src/tools/backend/flow.jpg
+0
-0
src/tools/backend/index.html
src/tools/backend/index.html
+17
-17
No files found.
src/backend/optimizer/README
View file @
e46df2ff
...
...
@@ -9,6 +9,7 @@ planner()
preprocess target list
preprocess qualifications(WHERE)
--query_planner()
cnfify qualification, so qual are expressions (were AND's) and OR clauses
pull out constants from target list
get a target list that only contains column names, no expressions
if none, then return
...
...
src/backend/optimizer/path/allpaths.c
View file @
e46df2ff
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.1
8 1998/08/04 00:42:07
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.1
9 1998/08/07 05:02:15
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -45,6 +45,7 @@ int32 _use_geqo_rels_ = GEQO_RELS;
static
void
find_rel_paths
(
Query
*
root
,
List
*
rels
);
static
List
*
find_join_paths
(
Query
*
root
,
List
*
outer_rels
,
int
levels_needed
);
static
void
debug_print_rel
(
Query
*
root
,
RelOptInfo
*
rel
);
/*
* find-paths--
...
...
@@ -236,7 +237,7 @@ find_join_paths(Query *root, List *outer_rels, int levels_needed)
/* #define OPTIMIZER_DEBUG */
#ifdef OPTIMIZER_DEBUG
printf
(
"levels left: %d
\n
"
,
levels_
left
);
printf
(
"levels left: %d
\n
"
,
levels_
needed
);
debug_print_rel
(
root
,
rel
);
#endif
}
...
...
src/backend/optimizer/plan/initsplan.c
View file @
e46df2ff
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.1
4 1998/08/04 16:44:14
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.1
5 1998/08/07 05:02:17
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -36,8 +36,7 @@
extern
int
Quiet
;
static
void
add_clause_to_rels
(
Query
*
root
,
List
*
clause
);
static
void
add_join_clause_info_to_rels
(
Query
*
root
,
CInfo
*
clauseinfo
,
static
void
add_join_clause_info_to_rels
(
Query
*
root
,
CInfo
*
clauseinfo
,
List
*
join_relids
);
static
void
add_vars_to_rels
(
Query
*
root
,
List
*
vars
,
List
*
join_relids
);
...
...
@@ -183,8 +182,6 @@ add_clause_to_rels(Query *root, List *clause)
clauseinfo
->
mergejoinorder
=
(
MergeOrder
*
)
NULL
;
clauseinfo
->
hashjoinoperator
=
(
Oid
)
0
;
if
(
length
(
relids
)
==
1
)
{
RelOptInfo
*
rel
=
get_base_rel
(
root
,
lfirsti
(
relids
));
...
...
src/backend/optimizer/plan/planmain.c
View file @
e46df2ff
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.2
3 1998/07/18 04:22:37
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.2
4 1998/08/07 05:02:19
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -18,6 +18,7 @@
#include "nodes/pg_list.h"
#include "nodes/plannodes.h"
#include "nodes/parsenodes.h"
#include "nodes/print.h"
#include "nodes/relation.h"
#include "nodes/makefuncs.h"
...
...
@@ -85,6 +86,10 @@ query_planner(Query *root,
qual
=
(
List
*
)
SS_process_sublinks
((
Node
*
)
qual
);
qual
=
cnfify
((
Expr
*
)
qual
,
true
);
#ifdef OPTIMIZER_DEBUG
printf
(
"After cnfify()
\n
"
);
pprint
(
qual
);
#endif
/*
* A command without a target list or qualification is an error,
...
...
src/backend/optimizer/util/clauses.c
View file @
e46df2ff
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.1
7 1998/06/15 19:28:47
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.1
8 1998/08/07 05:02:22
momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -350,8 +350,6 @@ pull_constant_clauses(List *quals, List **constantQual)
*
* Returns the list of relids and vars.
*
* XXX take the nreverse's out later
*
*/
void
clause_relids_vars
(
Node
*
clause
,
List
**
relids
,
List
**
vars
)
...
...
src/tools/backend/flow.fig
View file @
e46df2ff
...
...
@@ -7,10 +7,6 @@ Inches
0 0 2.00 150.00 180.00
0 0 2.00 150.00 180.00
7950 10200 7950 10800
2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 1
8400 375
2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 1
8400 375
2 4 0 1 -1 29 0 0 20 0.000 0 0 7 0 0 5
2775 11400 375 11400 375 10800 2775 10800 2775 11400
2 1 0 2 29 7 0 0 -1 0.000 0 0 -1 1 1 2
...
...
@@ -73,10 +69,6 @@ Inches
2 1 0 2 20 7 0 0 -1 0.000 0 0 -1 1 0 2
0 0 2.00 150.00 180.00
2550 2175 6450 2775
2 1 1 2 -1 7 0 0 -1 4.000 0 0 -1 1 1 2
0 0 2.00 150.00 180.00
0 0 2.00 150.00 180.00
4815 1908 5250 1350
2 4 0 1 -1 29 0 0 20 0.000 0 0 7 0 0 5
7650 12600 5250 12600 5250 12000 7650 12000 7650 12600
2 1 0 2 29 7 0 0 -1 0.000 0 0 -1 1 1 2
...
...
@@ -88,16 +80,20 @@ Inches
3750 5775 5250 5775
2 4 0 1 -1 8 0 0 20 0.000 0 0 7 0 0 5
3750 6075 1350 6075 1350 5475 3750 5475 3750 6075
2 1 1 2 -1 7 0 0 -1 3.000 0 0 -1 1 1 2
0 0 2.00 150.00 180.00
0 0 2.00 150.00 180.00
4660 1524 5295 1293
2 1 0 2 8 7 0 0 -1 0.000 0 0 -1 1 0 2
0 0 2.00 150.00 180.00
2550 7275 2550 7875
2 1 0 2 31 7 0 0 -1 0.000 0 0 -1 1 0 2
0 0 2.00 150.00 180.00
2550 3300 2550 4275
2 1 2 2 -1 7 0 0 -1 4.000 0 1 -1 1 1 2
0 0 2.00 80.00 150.00
0 0 2.00 80.00 150.00
4800 1875 5235 1317
2 1 2 2 -1 7 0 0 -1 3.000 0 1 -1 1 1 2
0 0 2.00 80.00 150.00
0 0 2.00 80.00 150.00
4584 1524 5219 1293
3 0 0 2 8 7 0 0 -1 0.000 0 1 0 8
0 0 2.00 150.00 150.00
1350 9375 1050 9375 825 9000 825 4425 1050 4050 1500 3975
...
...
src/tools/backend/flow.jpg
View replaced file @
af5fde74
View file @
e46df2ff
69.7 KB
|
W:
|
H:
68.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/tools/backend/index.html
View file @
e46df2ff
...
...
@@ -16,23 +16,23 @@ by Bruce Momjian
<IMG
src=
"flow.jpg"
usemap=
"#flowmap"
alt=
"flowchart"
border=
0
>
</CENTER>
<MAP
name=
"flowmap"
>
<AREA
COORDS=
"
80,10,240,5
0"
HREF=
"backend_dirs.html#main"
>
<AREA
COORDS=
"
80,90,240,13
0"
HREF=
"backend_dirs.html#postmaster"
>
<AREA
COORDS=
"3
40,50,500,9
0"
HREF=
"backend_dirs.html#libpq"
>
<AREA
COORDS=
"
80,170,240,21
0"
HREF=
"backend_dirs.html#tcop"
>
<AREA
COORDS=
"3
40,170,500,21
0"
HREF=
"backend_dirs.html#tcop"
>
<AREA
COORDS=
"
80,270,240,31
0"
HREF=
"backend_dirs.html#parser"
>
<AREA
COORDS=
"
80,350,240,39
0"
HREF=
"backend_dirs.html#tcop"
>
<AREA
COORDS=
"
80,430,240,47
0"
HREF=
"backend_dirs.html#optimizer"
>
<AREA
COORDS=
"
80,410,240,55
0"
HREF=
"backend_dirs.html#optimizer/plan"
>
<AREA
COORDS=
"
80,590,240,63
0"
HREF=
"backend_dirs.html#executor"
>
<AREA
COORDS=
"3
40,350,500,39
0"
HREF=
"backend_dirs.html#commands"
>
<AREA
COORDS=
"
10,700,170,75
0"
HREF=
"backend_dirs.html#utils"
>
<AREA
COORDS=
"2
20,700,380,74
0"
HREF=
"backend_dirs.html#catalog"
>
<AREA
COORDS=
"4
30,700,600,75
0"
HREF=
"backend_dirs.html#storage"
>
<AREA
COORDS=
"1
10,780,280,83
0"
HREF=
"backend_dirs.html#access"
>
<AREA
COORDS=
"3
40,780,500,83
0"
HREF=
"backend_dirs.html#nodes"
>
<AREA
COORDS=
"
20,870,180,91
0"
HREF=
"backend_dirs.html#bootstrap"
>
<AREA
COORDS=
"
70,0,230,4
0"
HREF=
"backend_dirs.html#main"
>
<AREA
COORDS=
"
70,80,230,12
0"
HREF=
"backend_dirs.html#postmaster"
>
<AREA
COORDS=
"3
30,40,490,8
0"
HREF=
"backend_dirs.html#libpq"
>
<AREA
COORDS=
"
70,160,230,20
0"
HREF=
"backend_dirs.html#tcop"
>
<AREA
COORDS=
"3
30,160,490,20
0"
HREF=
"backend_dirs.html#tcop"
>
<AREA
COORDS=
"
70,260,230,30
0"
HREF=
"backend_dirs.html#parser"
>
<AREA
COORDS=
"
70,340,230,38
0"
HREF=
"backend_dirs.html#tcop"
>
<AREA
COORDS=
"
70,420,230,46
0"
HREF=
"backend_dirs.html#optimizer"
>
<AREA
COORDS=
"
70,400,230,54
0"
HREF=
"backend_dirs.html#optimizer/plan"
>
<AREA
COORDS=
"
70,580,230,62
0"
HREF=
"backend_dirs.html#executor"
>
<AREA
COORDS=
"3
30,340,490,38
0"
HREF=
"backend_dirs.html#commands"
>
<AREA
COORDS=
"
0,690,160,74
0"
HREF=
"backend_dirs.html#utils"
>
<AREA
COORDS=
"2
10,690,370,73
0"
HREF=
"backend_dirs.html#catalog"
>
<AREA
COORDS=
"4
20,690,590,74
0"
HREF=
"backend_dirs.html#storage"
>
<AREA
COORDS=
"1
00,770,270,82
0"
HREF=
"backend_dirs.html#access"
>
<AREA
COORDS=
"3
30,770,490,82
0"
HREF=
"backend_dirs.html#nodes"
>
<AREA
COORDS=
"
10,860,170,90
0"
HREF=
"backend_dirs.html#bootstrap"
>
</MAP>
<CENTER><EM>
Click on an item to see more detail or look at the full
...
...
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