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
598e86f3
Commit
598e86f3
authored
Nov 26, 1997
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup up include files.
parent
4a5b781d
Changes
75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
586 additions
and
733 deletions
+586
-733
src/backend/catalog/heap.c
src/backend/catalog/heap.c
+2
-2
src/backend/executor/execTuples.c
src/backend/executor/execTuples.c
+4
-4
src/backend/parser/analyze.c
src/backend/parser/analyze.c
+3
-3
src/backend/parser/keywords.c
src/backend/parser/keywords.c
+3
-3
src/backend/parser/parse_agg.c
src/backend/parser/parse_agg.c
+1
-18
src/backend/parser/parse_clause.c
src/backend/parser/parse_clause.c
+3
-29
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+2
-22
src/backend/parser/parse_func.c
src/backend/parser/parse_func.c
+4
-25
src/backend/parser/parse_node.c
src/backend/parser/parse_node.c
+3
-17
src/backend/parser/parse_oper.c
src/backend/parser/parse_oper.c
+10
-41
src/backend/parser/parse_relation.c
src/backend/parser/parse_relation.c
+6
-21
src/backend/parser/parse_target.c
src/backend/parser/parse_target.c
+3
-26
src/backend/parser/parse_type.c
src/backend/parser/parse_type.c
+4
-39
src/backend/parser/parser.c
src/backend/parser/parser.c
+3
-12
src/backend/parser/scan.c
src/backend/parser/scan.c
+229
-239
src/backend/parser/scansup.c
src/backend/parser/scansup.c
+3
-2
src/include/access/rtscan.h
src/include/access/rtscan.h
+6
-1
src/include/access/rtstrat.h
src/include/access/rtstrat.h
+5
-1
src/include/commands/creatinh.h
src/include/commands/creatinh.h
+3
-1
src/include/commands/explain.h
src/include/commands/explain.h
+4
-1
src/include/commands/recipe.h
src/include/commands/recipe.h
+3
-1
src/include/commands/sequence.h
src/include/commands/sequence.h
+2
-0
src/include/commands/trigger.h
src/include/commands/trigger.h
+1
-0
src/include/commands/view.h
src/include/commands/view.h
+3
-1
src/include/executor/execFlatten.h
src/include/executor/execFlatten.h
+5
-1
src/include/executor/functions.h
src/include/executor/functions.h
+6
-1
src/include/executor/nodeAgg.h
src/include/executor/nodeAgg.h
+5
-1
src/include/executor/nodeAppend.h
src/include/executor/nodeAppend.h
+5
-1
src/include/executor/nodeGroup.h
src/include/executor/nodeGroup.h
+5
-1
src/include/executor/nodeHashjoin.h
src/include/executor/nodeHashjoin.h
+5
-5
src/include/executor/nodeIndexscan.h
src/include/executor/nodeIndexscan.h
+5
-9
src/include/executor/nodeMaterial.h
src/include/executor/nodeMaterial.h
+5
-1
src/include/executor/nodeMergejoin.h
src/include/executor/nodeMergejoin.h
+5
-4
src/include/executor/nodeNestloop.h
src/include/executor/nodeNestloop.h
+5
-1
src/include/executor/nodeResult.h
src/include/executor/nodeResult.h
+5
-1
src/include/executor/nodeSeqscan.h
src/include/executor/nodeSeqscan.h
+5
-1
src/include/executor/nodeSort.h
src/include/executor/nodeSort.h
+5
-1
src/include/executor/nodeTee.h
src/include/executor/nodeTee.h
+5
-1
src/include/executor/nodeUnique.h
src/include/executor/nodeUnique.h
+5
-1
src/include/nodes/readfuncs.h
src/include/nodes/readfuncs.h
+3
-1
src/include/optimizer/clauseinfo.h
src/include/optimizer/clauseinfo.h
+4
-1
src/include/optimizer/cost.h
src/include/optimizer/cost.h
+6
-1
src/include/optimizer/geqo.h
src/include/optimizer/geqo.h
+5
-1
src/include/optimizer/geqo_copy.h
src/include/optimizer/geqo_copy.h
+2
-1
src/include/optimizer/geqo_gene.h
src/include/optimizer/geqo_gene.h
+5
-3
src/include/optimizer/geqo_misc.h
src/include/optimizer/geqo_misc.h
+5
-1
src/include/optimizer/geqo_mutation.h
src/include/optimizer/geqo_mutation.h
+2
-1
src/include/optimizer/geqo_pool.h
src/include/optimizer/geqo_pool.h
+2
-1
src/include/optimizer/geqo_recombination.h
src/include/optimizer/geqo_recombination.h
+2
-1
src/include/optimizer/geqo_selection.h
src/include/optimizer/geqo_selection.h
+2
-1
src/include/optimizer/joininfo.h
src/include/optimizer/joininfo.h
+5
-1
src/include/optimizer/keys.h
src/include/optimizer/keys.h
+4
-1
src/include/optimizer/pathnode.h
src/include/optimizer/pathnode.h
+5
-1
src/include/optimizer/paths.h
src/include/optimizer/paths.h
+5
-1
src/include/optimizer/planmain.h
src/include/optimizer/planmain.h
+5
-1
src/include/optimizer/planner.h
src/include/optimizer/planner.h
+4
-2
src/include/optimizer/tlist.h
src/include/optimizer/tlist.h
+5
-1
src/include/optimizer/var.h
src/include/optimizer/var.h
+4
-1
src/include/parser/analyze.h
src/include/parser/analyze.h
+2
-2
src/include/parser/parse_agg.h
src/include/parser/parse_agg.h
+9
-16
src/include/parser/parse_clause.h
src/include/parser/parse_clause.h
+7
-12
src/include/parser/parse_expr.h
src/include/parser/parse_expr.h
+7
-12
src/include/parser/parse_func.h
src/include/parser/parse_func.h
+16
-32
src/include/parser/parse_node.h
src/include/parser/parse_node.h
+9
-16
src/include/parser/parse_oper.h
src/include/parser/parse_oper.h
+11
-21
src/include/parser/parse_relation.h
src/include/parser/parse_relation.h
+14
-26
src/include/parser/parse_target.h
src/include/parser/parse_target.h
+6
-10
src/include/parser/parse_type.h
src/include/parser/parse_type.h
+17
-17
src/include/parser/parser.h
src/include/parser/parser.h
+2
-2
src/include/parser/scansup.h
src/include/parser/scansup.h
+6
-1
src/include/rewrite/rewriteDefine.h
src/include/rewrite/rewriteDefine.h
+3
-1
src/include/rewrite/rewriteHandler.h
src/include/rewrite/rewriteHandler.h
+3
-1
src/include/rewrite/rewriteManip.h
src/include/rewrite/rewriteManip.h
+5
-1
src/include/rewrite/rewriteSupport.h
src/include/rewrite/rewriteSupport.h
+3
-1
src/include/utils/lselect.h
src/include/utils/lselect.h
+5
-1
No files found.
src/backend/catalog/heap.c
View file @
598e86f3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.3
4 1997/11/25 21:58:40
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.3
5 1997/11/26 01:10:46
momjian Exp $
*
* INTERFACE ROUTINES
* heap_creatr() - Create an uncataloged heap relation
...
...
@@ -1528,7 +1528,7 @@ start:;
{
if
(
*
cast
!=
0
)
elog
(
WARN
,
"DEFAULT: const type mismatched"
);
sprintf
(
cast
,
":: %s"
,
get_id_typn
ame
(
atp
->
atttypid
));
sprintf
(
cast
,
":: %s"
,
typeidTypeN
ame
(
atp
->
atttypid
));
goto
start
;
}
}
...
...
src/backend/executor/execTuples.c
View file @
598e86f3
...
...
@@ -14,7 +14,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.1
1 1997/11/25 21:59:16
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.1
2 1997/11/26 01:10:54
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -988,7 +988,7 @@ ExecTypeFromTL(List *targetList)
resdom
->
resno
,
resdom
->
resname
,
/* fix for SELECT NULL ... */
get_id_typn
ame
(
restype
?
restype
:
UNKNOWNOID
),
typeidTypeN
ame
(
restype
?
restype
:
UNKNOWNOID
),
0
,
false
);
...
...
@@ -1021,7 +1021,7 @@ ExecTypeFromTL(List *targetList)
TupleDescInitEntry
(
typeInfo
,
fjRes
->
resno
,
fjRes
->
resname
,
get_id_typn
ame
(
restype
),
typeidTypeN
ame
(
restype
),
0
,
false
);
/*
...
...
@@ -1044,7 +1044,7 @@ ExecTypeFromTL(List *targetList)
TupleDescInitEntry
(
typeInfo
,
fjRes
->
resno
,
fjRes
->
resname
,
get_id_typn
ame
(
restype
),
typeidTypeN
ame
(
restype
),
0
,
false
);
...
...
src/backend/parser/analyze.c
View file @
598e86f3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.5
0 1997/11/25 22:00:27
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.5
1 1997/11/26 01:11:03
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,18 +15,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "postgres.h"
#include "postgres.h"
#include "access/heapam.h"
#include "nodes/makefuncs.h"
#include "nodes/memnodes.h"
#include "nodes/pg_list.h"
#include "parser/analyze.h"
#include "parser/parse_agg.h"
#include "parser/parse_clause.h"
#include "parser/parse_node.h"
#include "parser/parse_relation.h"
#include "parser/parse_target.h"
#include "parser/parse_clause.h"
#include "utils/builtins.h"
#include "utils/mcxt.h"
...
...
src/backend/parser/keywords.c
View file @
598e86f3
...
...
@@ -7,16 +7,16 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.2
5 1997/11/25 22:05:32
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.2
6 1997/11/26 01:11:08
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <ctype.h>
#include <string.h>
#include "postgres.h"
#include "
nodes/pg_list
.h"
#include "
postgres
.h"
#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"
#include "parse.h"
#include "parser/keywords.h"
#include "utils/elog.h"
...
...
src/backend/parser/parse_agg.c
View file @
598e86f3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_agg.c,v 1.
1 1997/11/25 22:05:3
4 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_agg.c,v 1.
2 1997/11/26 01:11:1
4 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -27,23 +27,6 @@
#include "parser/parse_target.h"
#include "utils/syscache.h"
#ifdef 0
#include "nodes/nodes.h"
#include "nodes/params.h"
#include "parse.h"
/* for AND, OR, etc. */
#include "catalog/pg_type.h"
/* for INT4OID, etc. */
#include "catalog/pg_proc.h"
#include "utils/elog.h"
#include "utils/builtins.h"
/* namecmp(), textout() */
#include "utils/lsyscache.h"
#include "utils/palloc.h"
#include "utils/mcxt.h"
#include "utils/acl.h"
#include "nodes/makefuncs.h"
/* for makeResdom(), etc. */
#include "commands/sequence.h"
#endif
/*
* AddAggToParseState -
* add the aggregate to the list of unique aggregates in pstate.
...
...
src/backend/parser/parse_clause.c
View file @
598e86f3
...
...
@@ -7,49 +7,23 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.
1 1997/11/25 22:05:35
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.
2 1997/11/26 01:11:16
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "postgres.h"
#include "access/heapam.h"
#include "catalog/pg_type.h"
#include "parser/parse_clause.h"
#include "parser/parse_expr.h"
#include "parser/parse_node.h"
#include "parser/parse_oper.h"
#include "parser/parse_relation.h"
#include "parser/parse_target.h"
#include "catalog/pg_type.h"
#ifdef 0
#include "nodes/nodes.h"
#include "nodes/params.h"
#include "nodes/primnodes.h"
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
#include "parse.h"
/* for AND, OR, etc. */
#include "catalog/pg_aggregate.h"
#include "catalog/pg_proc.h"
#include "utils/elog.h"
#include "utils/builtins.h"
/* namecmp(), textout() */
#include "utils/lsyscache.h"
#include "utils/palloc.h"
#include "utils/mcxt.h"
#include "utils/syscache.h"
#include "utils/acl.h"
#include "nodes/makefuncs.h"
/* for makeResdom(), etc. */
#include "nodes/nodeFuncs.h"
#include "commands/sequence.h"
#include "optimizer/clauses.h"
#include "miscadmin.h"
#include "port-protos.h"
/* strdup() */
#endif
/*
* parseFromClause -
...
...
src/backend/parser/parse_expr.c
View file @
598e86f3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.
1 1997/11/25 22:05:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.
2 1997/11/26 01:11:17
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,34 +21,14 @@
#include "nodes/nodes.h"
#include "nodes/params.h"
#include "nodes/relation.h"
#include "parse.h"
#include "parser/parse_expr.h"
#include "parser/parse_func.h"
#include "parser/parse_node.h"
#include "parser/parse_relation.h"
#include "parser/parse_target.h"
#include "parse.h"
#include "utils/builtins.h"
#ifdef 0
#include "nodes/primnodes.h"
#include "nodes/parsenodes.h"
#include "catalog/pg_aggregate.h"
#include "catalog/pg_proc.h"
#include "utils/elog.h"
#include "utils/lsyscache.h"
#include "utils/palloc.h"
#include "utils/mcxt.h"
#include "utils/syscache.h"
#include "utils/acl.h"
#include "nodes/nodeFuncs.h"
#include "commands/sequence.h"
#include "optimizer/clauses.h"
#include "access/heapam.h"
#include "miscadmin.h"
#endif
Oid
param_type
(
int
t
);
/* from gram.y */
/*
...
...
src/backend/parser/parse_func.c
View file @
598e86f3
...
...
@@ -7,14 +7,13 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.
1 1997/11/25 22:05:4
1 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.
2 1997/11/26 01:11:2
1 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <string.h>
#include "postgres.h"
#include "fmgr.h"
#include "miscadmin.h"
#include "access/genam.h"
#include "access/heapam.h"
#include "access/itup.h"
...
...
@@ -25,7 +24,9 @@
#include "catalog/pg_inherits.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "lib/dllist.h"
#include "miscadmin.h"
#include "nodes/makefuncs.h"
#include "nodes/relation.h"
#include "parser/parse_agg.h"
...
...
@@ -41,28 +42,6 @@
#include "utils/lsyscache.h"
#include "utils/syscache.h"
#ifdef 0
#include "utils/datum.h"
#include "utils/elog.h"
#include "utils/palloc.h"
#include "nodes/pg_list.h"
#include "nodes/parsenodes.h"
#include "catalog/pg_operator.h"
#include "catalog/catname.h"
#include "access/skey.h"
#include "access/tupdesc.h"
#include "access/htup.h"
#include "access/genam.h"
#include "access/itup.h"
#include "access/tupmacs.h"
#include "storage/buf.h"
#endif
#define ISCOMPLEX(type) (typeidTypeRelid(type) ? true : false)
#define MAXFARGS 8
/* max # args to a c or postquel function */
...
...
src/backend/parser/parse_node.c
View file @
598e86f3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.
1 1997/11/25 22:05:4
2 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.
2 1997/11/26 01:11:2
2 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,33 +15,19 @@
#include <string.h>
#include "postgres.h"
#include "fmgr.h"
#include "access/heapam.h"
#include "catalog/pg_operator.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "nodes/makefuncs.h"
#include "parser/parse_expr.h"
#include "parser/parse_oper.h"
#include "parser/parse_node.h"
#include "parser/parse_oper.h"
#include "parser/parse_relation.h"
#include "parser/parse_type.h"
#include "utils/builtins.h"
#include "utils/syscache.h"
#ifdef 0
#include "access/tupmacs.h"
#include "utils/elog.h"
#include "utils/palloc.h"
#include "utils/acl.h"
/* for ACL_NO_PRIV_WARNING */
#include "utils/rel.h"
/* Relation stuff */
#include "utils/syscache.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h"
#include "nodes/parsenodes.h"
#endif
/*
* make_parsestate() --
* allocate and initialize a new ParseState.
...
...
src/backend/parser/parse_oper.c
View file @
598e86f3
...
...
@@ -7,55 +7,24 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.
1 1997/11/25 22:05:43
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.
2 1997/11/26 01:11:24
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <string.h>
#include "postgres.h"
#include <fmgr.h>
#include <access/heapam.h>
#include <access/relscan.h>
#include <catalog/catname.h>
#include <catalog/pg_operator.h>
#include <catalog/pg_proc.h>
#include <catalog/pg_type.h>
#include <parser/parse_oper.h>
#include <parser/parse_type.h>
#include <storage/bufmgr.h>
#include <utils/syscache.h>
#ifdef 0
#include "lib/dllist.h"
#include "utils/datum.h"
#include "utils/builtins.h"
#include "utils/elog.h"
#include "utils/palloc.h"
#include "nodes/pg_list.h"
#include "nodes/parsenodes.h"
#include "catalog/pg_inherits.h"
#include "access/heapam.h"
#include "access/relscan.h"
#include "catalog/catname.h"
#include "catalog/pg_operator.h"
#include "catalog/pg_proc.h"
#include "catalog/indexing.h"
#include "catalog/catname.h"
#include "access/skey.h"
#include "access/relscan.h"
#include "access/tupdesc.h"
#include "access/htup.h"
#include "access/genam.h"
#include "access/itup.h"
#include "access/tupmacs.h"
#include "storage/buf.h"
#include "utils/lsyscache.h"
#include "storage/lmgr.h"
#include "port-protos.h"
/* strdup() */
#endif
#include "catalog/pg_type.h"
#include "parser/parse_oper.h"
#include "parser/parse_type.h"
#include "storage/bufmgr.h"
#include "utils/syscache.h"
Oid
any_ordering_op
(
int
restype
)
...
...
src/backend/parser/parse_relation.c
View file @
598e86f3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.
1 1997/11/25 22:05:45
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.
2 1997/11/26 01:11:28
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -16,28 +16,13 @@
#include "postgres.h"
#include "access/heapam.h"
#include
<access/htup.h>
#include
<catalog/pg_type.h>
#include
"access/htup.h"
#include
"catalog/pg_type.h"
#include "nodes/makefuncs.h"
#include
<parser/parse_relation.h>
#include
<utils/acl.h>
#include
"parser/parse_relation.h"
#include
"utils/acl.h"
#include "utils/builtins.h"
#include <utils/lsyscache.h>
#ifdef 0
#include "fmgr.h"
#include "access/tupmacs.h"
#include "utils/elog.h"
#include "utils/palloc.h"
#include "utils/acl.h"
/* for ACL_NO_PRIV_WARNING */
#include "utils/syscache.h"
#include "catalog/pg_operator.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h"
#include "nodes/parsenodes.h"
#endif
#include "utils/lsyscache.h"
struct
{
...
...
src/backend/parser/parse_target.c
View file @
598e86f3
...
...
@@ -7,47 +7,24 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.
1 1997/11/25 22:05:47
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.
2 1997/11/26 01:11:30
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "postgres.h"
#include "catalog/pg_type.h"
#include "nodes/makefuncs.h"
#include "nodes/primnodes.h"
#include "parser/parse_expr.h"
#include "parser/parse_node.h"
#include "parser/parse_relation.h"
#include "parser/parse_target.h"
#include "parser/parse_node.h"
#include "utils/builtins.h"
#ifdef 0
#include "nodes/nodes.h"
#include "nodes/params.h"
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
#include "parse.h"
/* for AND, OR, etc. */
#include "catalog/pg_aggregate.h"
#include "catalog/pg_proc.h"
#include "utils/elog.h"
#include "utils/palloc.h"
#include "utils/mcxt.h"
#include "utils/syscache.h"
#include "utils/acl.h"
#include "nodes/nodeFuncs.h"
#include "commands/sequence.h"
#include "optimizer/clauses.h"
#include "access/heapam.h"
#include "miscadmin.h"
#include "port-protos.h"
/* strdup() */
#endif
/*
* transformTargetList -
* turns a list of ResTarget's into a list of TargetEntry's
...
...
src/backend/parser/parse_type.c
View file @
598e86f3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.
1 1997/11/25 22:05:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.
2 1997/11/26 01:11:32
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,46 +15,11 @@
#include "postgres.h"
#include "fmgr.h"
#include
<catalog/pg_type.h>
#include
<parser/parse_target.h>
#include
<parser/parse_type.h>
#include
"catalog/pg_type.h"
#include
"parser/parse_target.h"
#include
"parser/parse_type.h"
#include "utils/syscache.h"
#ifdef 0
#include "lib/dllist.h"
#include "utils/datum.h"
#include "utils/builtins.h"
#include "utils/elog.h"
#include "utils/palloc.h"
#include "nodes/pg_list.h"
#include "nodes/parsenodes.h"
#include "catalog/catname.h"
#include "catalog/pg_inherits.h"
#include "catalog/pg_operator.h"
#include "catalog/pg_proc.h"
#include "catalog/indexing.h"
#include "catalog/catname.h"
#include "access/skey.h"
#include "access/relscan.h"
#include "access/tupdesc.h"
#include "access/htup.h"
#include "access/heapam.h"
#include "access/genam.h"
#include "access/itup.h"
#include "access/tupmacs.h"
#include "storage/buf.h"
#include "storage/bufmgr.h"
#include "utils/lsyscache.h"
#include "storage/lmgr.h"
#include "port-protos.h"
/* strdup() */
#endif
/* check to see if a type id is valid,
* returns true if it is. By using this call before calling
* typeidType or typeidTypeName, more meaningful error messages
...
...
src/backend/parser/parser.c
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.
29 1997/11/25 22:05:52
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.
30 1997/11/26 01:11:36
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,19 +15,10 @@
#include "postgres.h"
#include "nodes/pg_list.h"
#include "parser/parser.h"
#include "parser/analyze.h"
#include "parser/parse_node.h"
void
init_io
();
/* from scan.l */
void
parser_init
(
Oid
*
typev
,
int
nargs
);
/* from gram.y */
int
yyparse
();
/* from gram.c */
#ifdef 0
#include "parser/parse.h"
#include "parser/gramparse.h"
#include "
utils/palloc
.h"
#
endif
#include "
parser/parse_node
.h"
#
include "parser/parser.h"
char
*
parseString
;
/* the char* which holds the string to be
* parsed */
...
...
src/backend/parser/scan.c
View file @
598e86f3
This diff is collapsed.
Click to expand it.
src/backend/parser/scansup.c
View file @
598e86f3
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scansup.c,v 1.
8 1997/11/25 22:05:55
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scansup.c,v 1.
9 1997/11/26 01:11:40
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -17,10 +17,11 @@
#include <ctype.h>
#include <string.h>
#include "postgres.h"
#include "miscadmin.h"
#include "utils/elog.h"
#include "parser/scansup.h"
#include "utils/elog.h"
/* ----------------
* scanstr
...
...
src/include/access/rtscan.h
View file @
598e86f3
...
...
@@ -6,11 +6,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rtscan.h,v 1.
3 1997/09/08 02:34:24
momjian Exp $
* $Id: rtscan.h,v 1.
4 1997/11/26 01:12:06
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RTSCAN_H
#define RTSCAN_H
#include <utils/rel.h>
#include <storage/block.h>
#include <storage/off.h>
void
rtadjscans
(
Relation
r
,
int
op
,
BlockNumber
blkno
,
OffsetNumber
offnum
);
...
...
src/include/access/rtstrat.h
View file @
598e86f3
...
...
@@ -6,11 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rtstrat.h,v 1.
4 1997/09/08 21:50:59
momjian Exp $
* $Id: rtstrat.h,v 1.
5 1997/11/26 01:12:08
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RTSTRAT_H
#define RTSTRAT_H
#include <utils/rel.h>
#include <access/attnum.h>
extern
RegProcedure
RTMapOperator
(
Relation
r
,
AttrNumber
attnum
,
...
...
src/include/commands/creatinh.h
View file @
598e86f3
...
...
@@ -6,13 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: creatinh.h,v 1.
5 1997/11/21 18:12:16
momjian Exp $
* $Id: creatinh.h,v 1.
6 1997/11/26 01:12:12
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef CREATINH_H
#define CREATINH_H
#include "nodes/parsenodes.h"
extern
void
DefineRelation
(
CreateStmt
*
stmt
);
extern
void
RemoveRelation
(
char
*
name
);
...
...
src/include/commands/explain.h
View file @
598e86f3
...
...
@@ -5,13 +5,16 @@
*
* Copyright (c) 1994-5, Regents of the University of California
*
* $Id: explain.h,v 1.
5 1997/09/08 21:51:38
momjian Exp $
* $Id: explain.h,v 1.
6 1997/11/26 01:12:16
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXPLAIN_H
#define EXPLAIN_H
#include "tcop/dest.h"
#include "nodes/parsenodes.h"
extern
void
ExplainQuery
(
Query
*
query
,
bool
verbose
,
CommandDest
dest
);
#endif
/* EXPLAIN_H */
src/include/commands/recipe.h
View file @
598e86f3
...
...
@@ -5,13 +5,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: recipe.h,v 1.
4 1997/09/08 21:51:42
momjian Exp $
* $Id: recipe.h,v 1.
5 1997/11/26 01:12:24
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RECIPE_H
#define RECIPE_H
#include "nodes/parsenodes.h"
extern
void
beginRecipe
(
RecipeStmt
*
stmt
);
#endif
/* RECIPE_H */
src/include/commands/sequence.h
View file @
598e86f3
...
...
@@ -9,6 +9,8 @@
#ifndef SEQUENCE_H
#define SEQUENCE_H
#include "nodes/parsenodes.h"
/*
* Columns of a sequnece relation
*/
...
...
src/include/commands/trigger.h
View file @
598e86f3
...
...
@@ -11,6 +11,7 @@
#include "access/tupdesc.h"
#include "access/htup.h"
#include "nodes/parsenodes.h"
#include "utils/rel.h"
typedef
uint32
TriggerEvent
;
...
...
src/include/commands/view.h
View file @
598e86f3
...
...
@@ -6,13 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: view.h,v 1.
4 1997/09/08 21:51:47
momjian Exp $
* $Id: view.h,v 1.
5 1997/11/26 01:12:33
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef VIEW_H
#define VIEW_H
#include "nodes/parsenodes.h"
extern
char
*
MakeRetrieveViewRuleName
(
char
*
view_name
);
extern
void
DefineView
(
char
*
view_name
,
Query
*
view_parse
);
extern
void
RemoveView
(
char
*
view_name
);
...
...
src/include/executor/execFlatten.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execFlatten.h,v 1.
5 1997/09/08 21:51:49
momjian Exp $
* $Id: execFlatten.h,v 1.
6 1997/11/26 01:12:36
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXECFLATTEN_H
#define EXECFLATTEN_H
#include "nodes/relation.h"
#include "nodes/execnodes.h"
#include "nodes/parsenodes.h"
extern
Datum
ExecEvalIter
(
Iter
*
iterNode
,
ExprContext
*
econtext
,
bool
*
resultIsNull
,
bool
*
iterIsDone
);
extern
void
ExecEvalFjoin
(
TargetEntry
*
tlist
,
ExprContext
*
econtext
,
bool
*
isNullVect
,
bool
*
fj_isDone
);
...
...
src/include/executor/functions.h
View file @
598e86f3
...
...
@@ -6,13 +6,18 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: functions.h,v 1.
4 1997/09/08 21:51:59
momjian Exp $
* $Id: functions.h,v 1.
5 1997/11/26 01:12:38
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include "access/tupdesc.h"
#include "nodes/parsenodes.h"
#include "nodes/primnodes.h"
#include "utils/syscache.h"
extern
Datum
ProjectAttribute
(
TupleDesc
TD
,
TargetEntry
*
tlist
,
HeapTuple
tup
,
bool
*
isnullP
);
...
...
src/include/executor/nodeAgg.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeAgg.h,v 1.
5 1997/09/08 21:52:01
momjian Exp $
* $Id: nodeAgg.h,v 1.
6 1997/11/26 01:12:40
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEAGG_H
#define NODEAGG_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecAgg
(
Agg
*
node
);
extern
bool
ExecInitAgg
(
Agg
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsAgg
(
Agg
*
node
);
...
...
src/include/executor/nodeAppend.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeAppend.h,v 1.
6 1997/09/08 21:52:02
momjian Exp $
* $Id: nodeAppend.h,v 1.
7 1997/11/26 01:12:44
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEAPPEND_H
#define NODEAPPEND_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
bool
ExecInitAppend
(
Append
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsAppend
(
Append
*
node
);
extern
TupleTableSlot
*
ExecProcAppend
(
Append
*
node
);
...
...
src/include/executor/nodeGroup.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeGroup.h,v 1.
4 1997/09/08 21:52:02
momjian Exp $
* $Id: nodeGroup.h,v 1.
5 1997/11/26 01:12:46
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEGROUP_H
#define NODEGROUP_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecGroup
(
Group
*
node
);
extern
bool
ExecInitGroup
(
Group
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsGroup
(
Group
*
node
);
...
...
src/include/executor/nodeHashjoin.h
View file @
598e86f3
...
...
@@ -6,21 +6,21 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeHashjoin.h,v 1.
5 1997/09/08 21:52:05
momjian Exp $
* $Id: nodeHashjoin.h,v 1.
6 1997/11/26 01:12:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEHASHJOIN_H
#define NODEHASHJOIN_H
extern
TupleTableSlot
*
ExecHashJoin
(
HashJoin
*
node
);
#include "nodes/plannodes.h"
#include "nodes/execnodes.h"
#include "utils/syscache.h"
extern
TupleTableSlot
*
ExecHashJoin
(
HashJoin
*
node
);
extern
bool
ExecInitHashJoin
(
HashJoin
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsHashJoin
(
HashJoin
*
node
);
extern
void
ExecEndHashJoin
(
HashJoin
*
node
);
extern
char
*
ExecHashJoinSaveTuple
(
HeapTuple
heapTuple
,
char
*
buffer
,
File
file
,
char
*
position
);
...
...
src/include/executor/nodeIndexscan.h
View file @
598e86f3
...
...
@@ -6,29 +6,25 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeIndexscan.h,v 1.
5 1997/09/08 21:52:06
momjian Exp $
* $Id: nodeIndexscan.h,v 1.
6 1997/11/26 01:12:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEINDEXSCAN_H
#define NODEINDEXSCAN_H
extern
TupleTableSlot
*
ExecIndexScan
(
IndexScan
*
node
);
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecIndexScan
(
IndexScan
*
node
);
extern
void
ExecIndexReScan
(
IndexScan
*
node
,
ExprContext
*
exprCtxt
,
Plan
*
parent
);
extern
void
ExecEndIndexScan
(
IndexScan
*
node
);
extern
void
ExecIndexMarkPos
(
IndexScan
*
node
);
extern
void
ExecIndexRestrPos
(
IndexScan
*
node
);
extern
void
ExecUpdateIndexScanKeys
(
IndexScan
*
node
,
ExprContext
*
econtext
);
extern
bool
ExecInitIndexScan
(
IndexScan
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsIndexScan
(
IndexScan
*
node
);
extern
void
ExecIndexReScan
(
IndexScan
*
node
,
ExprContext
*
exprCtxt
,
Plan
*
parent
);
#endif
/* NODEINDEXSCAN_H */
src/include/executor/nodeMaterial.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeMaterial.h,v 1.
4 1997/09/08 21:52:07
momjian Exp $
* $Id: nodeMaterial.h,v 1.
5 1997/11/26 01:12:53
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEMATERIAL_H
#define NODEMATERIAL_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecMaterial
(
Material
*
node
);
extern
bool
ExecInitMaterial
(
Material
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsMaterial
(
Material
*
node
);
...
...
src/include/executor/nodeMergejoin.h
View file @
598e86f3
...
...
@@ -6,19 +6,20 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeMergejoin.h,v 1.
6 1997/09/08 21:52:09
momjian Exp $
* $Id: nodeMergejoin.h,v 1.
7 1997/11/26 01:12:55
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEMERGEJOIN_H
#define NODEMERGEJOIN_H
extern
TupleTableSlot
*
ExecMergeJoin
(
MergeJoin
*
node
);
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecMergeJoin
(
MergeJoin
*
node
);
extern
bool
ExecInitMergeJoin
(
MergeJoin
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsMergeJoin
(
MergeJoin
*
node
);
extern
void
ExecEndMergeJoin
(
MergeJoin
*
node
);
#endif
/* NODEMERGEJOIN_H; */
src/include/executor/nodeNestloop.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeNestloop.h,v 1.
4 1997/09/08 21:52:10
momjian Exp $
* $Id: nodeNestloop.h,v 1.
5 1997/11/26 01:12:57
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODENESTLOOP_H
#define NODENESTLOOP_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecNestLoop
(
NestLoop
*
node
,
Plan
*
parent
);
extern
bool
ExecInitNestLoop
(
NestLoop
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsNestLoop
(
NestLoop
*
node
);
...
...
src/include/executor/nodeResult.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeResult.h,v 1.
4 1997/09/08 21:52:11
momjian Exp $
* $Id: nodeResult.h,v 1.
5 1997/11/26 01:12:58
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODERESULT_H
#define NODERESULT_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecResult
(
Result
*
node
);
extern
bool
ExecInitResult
(
Result
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsResult
(
Result
*
node
);
...
...
src/include/executor/nodeSeqscan.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeSeqscan.h,v 1.
5 1997/09/08 21:52:12
momjian Exp $
* $Id: nodeSeqscan.h,v 1.
6 1997/11/26 01:13:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODESEQSCAN_H
#define NODESEQSCAN_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecSeqScan
(
SeqScan
*
node
);
extern
bool
ExecInitSeqScan
(
SeqScan
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsSeqScan
(
SeqScan
*
node
);
...
...
src/include/executor/nodeSort.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeSort.h,v 1.
4 1997/09/08 21:52:12
momjian Exp $
* $Id: nodeSort.h,v 1.
5 1997/11/26 01:13:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODESORT_H
#define NODESORT_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecSort
(
Sort
*
node
);
extern
bool
ExecInitSort
(
Sort
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsSort
(
Sort
*
node
);
...
...
src/include/executor/nodeTee.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeTee.h,v 1.
4 1997/09/08 21:52:13
momjian Exp $
* $Id: nodeTee.h,v 1.
5 1997/11/26 01:13:06
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -13,6 +13,10 @@
#ifndef NODETEE_H
#define NODETEE_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecTee
(
Tee
*
node
,
Plan
*
parent
);
extern
bool
ExecInitTee
(
Tee
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
void
ExecTeeReScan
(
Tee
*
node
,
ExprContext
*
exprCtxt
,
Plan
*
parent
);
...
...
src/include/executor/nodeUnique.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeUnique.h,v 1.
4 1997/09/08 21:52:14
momjian Exp $
* $Id: nodeUnique.h,v 1.
5 1997/11/26 01:13:06
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef NODEUNIQUE_H
#define NODEUNIQUE_H
#include "executor/tuptable.h"
#include "nodes/execnodes.h"
#include "nodes/plannodes.h"
extern
TupleTableSlot
*
ExecUnique
(
Unique
*
node
);
extern
bool
ExecInitUnique
(
Unique
*
node
,
EState
*
estate
,
Plan
*
parent
);
extern
int
ExecCountSlotsUnique
(
Unique
*
node
);
...
...
src/include/nodes/readfuncs.h
View file @
598e86f3
...
...
@@ -6,13 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: readfuncs.h,v 1.
4 1997/09/08 02:37:28
momjian Exp $
* $Id: readfuncs.h,v 1.
5 1997/11/26 01:13:09
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef READFUNCS_H
#define READFUNCS_H
#include "nodes/nodes.h"
/*
* prototypes for functions in read.c (the lisp token parser)
*/
...
...
src/include/optimizer/clauseinfo.h
View file @
598e86f3
...
...
@@ -6,13 +6,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: clauseinfo.h,v 1.
4 1997/09/08 21:53:03
momjian Exp $
* $Id: clauseinfo.h,v 1.
5 1997/11/26 01:13:12
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef CLAUSEINFO_H
#define CLAUSEINFO_H
#include "nodes/pg_list.h"
#include "nodes/relation.h"
extern
bool
valid_or_clause
(
CInfo
*
clauseinfo
);
extern
List
*
get_actual_clauses
(
List
*
clauseinfo_list
);
extern
void
...
...
src/include/optimizer/cost.h
View file @
598e86f3
...
...
@@ -6,13 +6,18 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: cost.h,v 1.
5 1997/09/08 21:53:09
momjian Exp $
* $Id: cost.h,v 1.
6 1997/11/26 01:13:16
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef COST_H
#define COST_H
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"
#include "nodes/relation.h"
/*
* prototypes for costsize.c--
* routines to compute costs and sizes
...
...
src/include/optimizer/geqo.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo.h,v 1.
6 1997/09/08 21:53:10
momjian Exp $
* $Id: geqo.h,v 1.
7 1997/11/26 01:13:23
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,6 +21,10 @@
#ifndef GEQO_H
#define GEQO_H
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
#include "optimizer/geqo_gene.h"
/* GEQO debug flag */
/*
...
...
src/include/optimizer/geqo_copy.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_copy.h,v 1.
4 1997/09/08 21:53:10
momjian Exp $
* $Id: geqo_copy.h,v 1.
5 1997/11/26 01:13:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,6 +21,7 @@
#ifndef GEQO_COPY_H
#define GEQO_COPY_H
#include "optimizer/geqo_gene.h"
extern
void
geqo_copy
(
Chromosome
*
chromo1
,
Chromosome
*
chromo2
,
int
string_length
);
...
...
src/include/optimizer/geqo_gene.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_gene.h,v 1.
4 1997/09/08 21:53:11
momjian Exp $
* $Id: geqo_gene.h,v 1.
5 1997/11/26 01:13:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,11 +22,13 @@
#ifndef GEQO_GENE_H
#define GEQO_GENE_H
#include "nodes/nodes.h"
#include "nodes/relation.h"
#include "optimizer/geqo_gene.h"
/* we presume that int instead of Relid
is o.k. for Gene; so don't change it! */
typedef
int
Gene
;
typedef
int
Gene
;
typedef
struct
Chromosome
{
...
...
src/include/optimizer/geqo_misc.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_misc.h,v 1.
4 1997/09/08 21:53:13
momjian Exp $
* $Id: geqo_misc.h,v 1.
5 1997/11/26 01:13:28
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -23,6 +23,10 @@
#include <stdio.h>
#include "nodes/parsenodes.h"
#include "optimizer/geqo_gene.h"
#include "optimizer/geqo_recombination.h"
extern
void
print_pool
(
FILE
*
fp
,
Pool
*
pool
,
int
start
,
int
stop
);
extern
void
print_gen
(
FILE
*
fp
,
Pool
*
pool
,
int
generation
);
extern
void
print_edge_table
(
FILE
*
fp
,
Edge
*
edge_table
,
int
num_gene
);
...
...
src/include/optimizer/geqo_mutation.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_mutation.h,v 1.
4 1997/09/08 21:53:13
momjian Exp $
* $Id: geqo_mutation.h,v 1.
5 1997/11/26 01:13:29
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,6 +21,7 @@
#ifndef GEQO_MUTATION_H
#define GEQO_MUTATION_H
#include "optimizer/geqo_gene.h"
extern
void
geqo_mutation
(
Gene
*
tour
,
int
num_gene
);
...
...
src/include/optimizer/geqo_pool.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_pool.h,v 1.
4 1997/09/08 21:53:15
momjian Exp $
* $Id: geqo_pool.h,v 1.
5 1997/11/26 01:13:30
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,6 +22,7 @@
#ifndef GEQO_POOL_H
#define GEQO_POOL_H
#include "optimizer/geqo_gene.h"
extern
Pool
*
alloc_pool
(
int
pool_size
,
int
string_length
);
extern
void
free_pool
(
Pool
*
pool
);
...
...
src/include/optimizer/geqo_recombination.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_recombination.h,v 1.
4 1997/09/08 21:53:16
momjian Exp $
* $Id: geqo_recombination.h,v 1.
5 1997/11/26 01:13:32
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -23,6 +23,7 @@
#ifndef GEQO_RECOMBINATION_H
#define GEQO_RECOMBINATION_H
#include "optimizer/geqo_gene.h"
extern
void
init_tour
(
Gene
*
tour
,
int
num_gene
);
...
...
src/include/optimizer/geqo_selection.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_selection.h,v 1.
4 1997/09/08 21:53:17
momjian Exp $
* $Id: geqo_selection.h,v 1.
5 1997/11/26 01:13:36
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,6 +22,7 @@
#ifndef GEQO_SELECTION_H
#define GEQO_SELECTION_H
#include "optimizer/geqo_gene.h"
extern
void
geqo_selection
(
Chromosome
*
momma
,
Chromosome
*
daddy
,
Pool
*
pool
,
double
bias
);
...
...
src/include/optimizer/joininfo.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: joininfo.h,v 1.
4 1997/09/08 21:53:18
momjian Exp $
* $Id: joininfo.h,v 1.
5 1997/11/26 01:13:39
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef JOININFO_H
#define JOININFO_H
#include "nodes/nodes.h"
#include "nodes/relation.h"
#include "nodes/primnodes.h"
extern
JInfo
*
joininfo_member
(
List
*
join_relids
,
List
*
joininfo_list
);
extern
JInfo
*
find_joininfo_node
(
Rel
*
this_rel
,
List
*
join_relids
);
extern
Var
*
other_join_clause_var
(
Var
*
var
,
Expr
*
clause
);
...
...
src/include/optimizer/keys.h
View file @
598e86f3
...
...
@@ -6,13 +6,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: keys.h,v 1.
5 1997/09/08 21:53:18
momjian Exp $
* $Id: keys.h,v 1.
6 1997/11/26 01:13:41
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef KEYS_H
#define KEYS_H
#include "nodes/nodes.h"
#include "nodes/relation.h"
extern
bool
match_indexkey_operand
(
int
indexkey
,
Var
*
operand
,
Rel
*
rel
);
extern
Var
*
extract_subkey
(
JoinKey
*
jk
,
int
which_subkey
);
extern
bool
samekeys
(
List
*
keys1
,
List
*
keys2
);
...
...
src/include/optimizer/pathnode.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pathnode.h,v 1.
4 1997/09/08 21:53:23
momjian Exp $
* $Id: pathnode.h,v 1.
5 1997/11/26 01:13:46
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PATHNODE_H
#define PATHNODE_H
#include "nodes/nodes.h"
#include "nodes/relation.h"
#include "nodes/parsenodes.h"
/*
* prototypes for pathnode.c
*/
...
...
src/include/optimizer/paths.h
View file @
598e86f3
...
...
@@ -7,13 +7,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: paths.h,v 1.
4 1997/09/08 21:53:25
momjian Exp $
* $Id: paths.h,v 1.
5 1997/11/26 01:13:47
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PATHS_H
#define PATHS_H
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
/*
* allpaths.h
*/
...
...
src/include/optimizer/planmain.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: planmain.h,v 1.
5 1997/09/08 21:53:2
8 momjian Exp $
* $Id: planmain.h,v 1.
6 1997/11/26 01:13:4
8 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PLANMAIN_H
#define PLANMAIN_H
#include "nodes/nodes.h"
#include "nodes/plannodes.h"
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
/*
* prototypes for plan/planmain.c
...
...
src/include/optimizer/planner.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: planner.h,v 1.
6 1997/11/25 22:06:37
momjian Exp $
* $Id: planner.h,v 1.
7 1997/11/26 01:13:49
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -16,7 +16,9 @@
/*
*/
#include <parser/parse_node.h>
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"
#include "parser/parse_node.h"
extern
Plan
*
planner
(
Query
*
parse
);
extern
void
pg_checkretval
(
Oid
rettype
,
QueryTreeList
*
querytree_list
);
...
...
src/include/optimizer/tlist.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tlist.h,v 1.
5 1997/09/08 21:53:3
1 momjian Exp $
* $Id: tlist.h,v 1.
6 1997/11/26 01:13:5
1 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef TLIST_H
#define TLIST_H
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "nodes/relation.h"
extern
int
exec_tlist_length
(
List
*
targelist
);
extern
TargetEntry
*
tlistentry_member
(
Var
*
var
,
List
*
targetlist
);
extern
Expr
*
matching_tlvar
(
Var
*
var
,
List
*
targetlist
);
...
...
src/include/optimizer/var.h
View file @
598e86f3
...
...
@@ -6,13 +6,16 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: var.h,v 1.
4 1997/09/08 21:53:31
momjian Exp $
* $Id: var.h,v 1.
5 1997/11/26 01:13:52
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef VAR_H
#define VAR_H
#include "nodes/nodes.h"
#include "nodes/primnodes.h"
extern
List
*
pull_varnos
(
Node
*
me
);
extern
bool
contain_var_clause
(
Node
*
clause
);
extern
List
*
pull_var_clause
(
Node
*
clause
);
...
...
src/include/parser/analyze.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: analyze.h,v 1.
1 1997/11/25 22:06:47
momjian Exp $
* $Id: analyze.h,v 1.
2 1997/11/26 01:13:56
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -14,6 +14,6 @@
#include <parser/parse_node.h>
QueryTreeList
*
parse_analyze
(
List
*
pl
);
extern
QueryTreeList
*
parse_analyze
(
List
*
pl
);
#endif
/* ANALYZE_H */
src/include/parser/parse_agg.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_agg.h,v 1.
1 1997/11/25 22:06:53
momjian Exp $
* $Id: parse_agg.h,v 1.
2 1997/11/26 01:13:58
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -18,21 +18,14 @@
#include <nodes/primnodes.h>
#include <parser/parse_node.h>
void
AddAggToParseState
(
ParseState
*
pstate
,
Aggreg
*
aggreg
);
void
finalizeAggregates
(
ParseState
*
pstate
,
Query
*
qry
);
bool
contain_agg_clause
(
Node
*
clause
);
bool
exprIsAggOrGroupCol
(
Node
*
expr
,
List
*
groupClause
);
bool
tleIsAggOrGroupCol
(
TargetEntry
*
tle
,
List
*
groupClause
);
void
parseCheckAggregates
(
ParseState
*
pstate
,
Query
*
qry
);
Aggreg
*
ParseAgg
(
char
*
aggname
,
Oid
basetype
,
Node
*
target
);
void
agg_error
(
char
*
caller
,
char
*
aggname
,
Oid
basetypeID
);
extern
void
AddAggToParseState
(
ParseState
*
pstate
,
Aggreg
*
aggreg
);
extern
void
finalizeAggregates
(
ParseState
*
pstate
,
Query
*
qry
);
extern
bool
contain_agg_clause
(
Node
*
clause
);
extern
bool
exprIsAggOrGroupCol
(
Node
*
expr
,
List
*
groupClause
);
extern
bool
tleIsAggOrGroupCol
(
TargetEntry
*
tle
,
List
*
groupClause
);
extern
void
parseCheckAggregates
(
ParseState
*
pstate
,
Query
*
qry
);
extern
Aggreg
*
ParseAgg
(
char
*
aggname
,
Oid
basetype
,
Node
*
target
);
extern
void
agg_error
(
char
*
caller
,
char
*
aggname
,
Oid
basetypeID
);
#endif
/* PARSE_AGG_H */
src/include/parser/parse_clause.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_clause.h,v 1.
1 1997/11/25 22:06:54
momjian Exp $
* $Id: parse_clause.h,v 1.
2 1997/11/26 01:14:00
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -19,19 +19,14 @@
#include <nodes/primnodes.h>
#include <parser/parse_node.h>
void
parseFromClause
(
ParseState
*
pstate
,
List
*
frmList
);
void
makeRangeTable
(
ParseState
*
pstate
,
char
*
relname
,
List
*
frmList
);
Node
*
transformWhereClause
(
ParseState
*
pstate
,
Node
*
a_expr
);
TargetEntry
*
find_targetlist_entry
(
ParseState
*
pstate
,
extern
void
parseFromClause
(
ParseState
*
pstate
,
List
*
frmList
);
extern
void
makeRangeTable
(
ParseState
*
pstate
,
char
*
relname
,
List
*
frmList
);
extern
Node
*
transformWhereClause
(
ParseState
*
pstate
,
Node
*
a_expr
);
extern
TargetEntry
*
find_targetlist_entry
(
ParseState
*
pstate
,
SortGroupBy
*
sortgroupby
,
List
*
tlist
);
List
*
transformGroupClause
(
ParseState
*
pstate
,
List
*
grouplist
,
extern
List
*
transformGroupClause
(
ParseState
*
pstate
,
List
*
grouplist
,
List
*
targetlist
);
List
*
transformSortClause
(
ParseState
*
pstate
,
extern
List
*
transformSortClause
(
ParseState
*
pstate
,
List
*
orderlist
,
List
*
targetlist
,
char
*
uniqueFlag
);
...
...
src/include/parser/parse_expr.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_expr.h,v 1.
1 1997/11/25 22:06:55
momjian Exp $
* $Id: parse_expr.h,v 1.
2 1997/11/26 01:14:02
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -18,17 +18,12 @@
#include <nodes/primnodes.h>
#include <parser/parse_node.h>
Node
*
transformExpr
(
ParseState
*
pstate
,
Node
*
expr
,
int
precedence
);
Node
*
transformIdent
(
ParseState
*
pstate
,
Node
*
expr
,
int
precedence
);
Oid
exprType
(
Node
*
expr
);
Node
*
handleNestedDots
(
ParseState
*
pstate
,
Attr
*
attr
,
int
*
curr_resno
);
Node
*
parser_typecast
(
Value
*
expr
,
TypeName
*
typename
,
int
typlen
);
Node
*
parser_typecast2
(
Node
*
expr
,
Oid
exprType
,
Type
tp
,
int
typlen
);
extern
Node
*
transformExpr
(
ParseState
*
pstate
,
Node
*
expr
,
int
precedence
);
extern
Node
*
transformIdent
(
ParseState
*
pstate
,
Node
*
expr
,
int
precedence
);
extern
Oid
exprType
(
Node
*
expr
);
extern
Node
*
handleNestedDots
(
ParseState
*
pstate
,
Attr
*
attr
,
int
*
curr_resno
);
extern
Node
*
parser_typecast
(
Value
*
expr
,
TypeName
*
typename
,
int
typlen
);
extern
Node
*
parser_typecast2
(
Node
*
expr
,
Oid
exprType
,
Type
tp
,
int
typlen
);
#endif
/* PARSE_EXPR_H */
src/include/parser/parse_func.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_func.h,v 1.
1 1997/11/25 22:06:56
momjian Exp $
* $Id: parse_func.h,v 1.
2 1997/11/26 01:14:04
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -42,56 +42,40 @@ typedef struct _CandidateList
struct
_CandidateList
*
next
;
}
*
CandidateList
;
Node
*
ParseFunc
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
extern
Node
*
ParseFunc
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
int
*
curr_resno
);
Oid
funcid_get_rettype
(
Oid
funcid
);
CandidateList
func_get_candidates
(
char
*
funcname
,
int
nargs
);
bool
can_coerce
(
int
nargs
,
Oid
*
input_typeids
,
Oid
*
func_typeids
);
int
match_argtypes
(
int
nargs
,
extern
Oid
funcid_get_rettype
(
Oid
funcid
);
extern
CandidateList
func_get_candidates
(
char
*
funcname
,
int
nargs
);
extern
bool
can_coerce
(
int
nargs
,
Oid
*
input_typeids
,
Oid
*
func_typeids
);
extern
int
match_argtypes
(
int
nargs
,
Oid
*
input_typeids
,
CandidateList
function_typeids
,
CandidateList
*
candidates
);
Oid
*
func_select_candidate
(
int
nargs
,
extern
Oid
*
func_select_candidate
(
int
nargs
,
Oid
*
input_typeids
,
CandidateList
candidates
);
bool
func_get_detail
(
char
*
funcname
,
extern
bool
func_get_detail
(
char
*
funcname
,
int
nargs
,
Oid
*
oid_array
,
Oid
*
funcid
,
/* return value */
Oid
*
rettype
,
/* return value */
bool
*
retset
,
/* return value */
Oid
**
true_typeids
);
Oid
**
argtype_inherit
(
int
nargs
,
Oid
*
oid_array
);
int
findsupers
(
Oid
relid
,
Oid
**
supervec
);
Oid
**
genxprod
(
InhPaths
*
arginh
,
int
nargs
);
void
make_arguments
(
int
nargs
,
extern
Oid
**
argtype_inherit
(
int
nargs
,
Oid
*
oid_array
);
extern
int
findsupers
(
Oid
relid
,
Oid
**
supervec
);
extern
Oid
**
genxprod
(
InhPaths
*
arginh
,
int
nargs
);
extern
void
make_arguments
(
int
nargs
,
List
*
fargs
,
Oid
*
input_typeids
,
Oid
*
function_typeids
);
List
*
setup_tlist
(
char
*
attname
,
Oid
relid
);
List
*
setup_base_tlist
(
Oid
typeid
);
Node
*
ParseComplexProjection
(
ParseState
*
pstate
,
extern
List
*
setup_tlist
(
char
*
attname
,
Oid
relid
);
extern
List
*
setup_base_tlist
(
Oid
typeid
);
extern
Node
*
ParseComplexProjection
(
ParseState
*
pstate
,
char
*
funcname
,
Node
*
first_arg
,
bool
*
attisset
);
void
func_error
(
char
*
caller
,
char
*
funcname
,
int
nargs
,
Oid
*
argtypes
);
extern
void
func_error
(
char
*
caller
,
char
*
funcname
,
int
nargs
,
Oid
*
argtypes
);
#endif
/* PARSE_FUNC_H */
src/include/parser/parse_node.h
View file @
598e86f3
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_node.h,v 1.
1 1997/11/25 22:06:57
momjian Exp $
* $Id: parse_node.h,v 1.
2 1997/11/26 01:14:05
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -41,27 +41,20 @@ typedef struct ParseState
RangeTblEntry
*
p_target_rangetblentry
;
}
ParseState
;
ParseState
*
make_parsestate
(
void
);
Node
*
make_operand
(
char
*
opname
,
extern
ParseState
*
make_parsestate
(
void
);
extern
Node
*
make_operand
(
char
*
opname
,
Node
*
tree
,
Oid
orig_typeId
,
Oid
true_typeId
);
void
disallow_setop
(
char
*
op
,
Type
optype
,
Node
*
operand
);
Expr
*
make_op
(
char
*
opname
,
Node
*
ltree
,
Node
*
rtree
);
Var
*
make_var
(
ParseState
*
pstate
,
char
*
refname
,
char
*
attrname
,
Oid
*
type_id
);
ArrayRef
*
make_array_ref
(
Node
*
expr
,
extern
void
disallow_setop
(
char
*
op
,
Type
optype
,
Node
*
operand
);
extern
Expr
*
make_op
(
char
*
opname
,
Node
*
ltree
,
Node
*
rtree
);
extern
Var
*
make_var
(
ParseState
*
pstate
,
char
*
refname
,
char
*
attrname
,
Oid
*
type_id
);
extern
ArrayRef
*
make_array_ref
(
Node
*
expr
,
List
*
indirection
);
ArrayRef
*
make_array_set
(
Expr
*
target_expr
,
extern
ArrayRef
*
make_array_set
(
Expr
*
target_expr
,
List
*
upperIndexpr
,
List
*
lowerIndexpr
,
Expr
*
expr
);
Const
*
make_const
(
Value
*
value
);
extern
Const
*
make_const
(
Value
*
value
);
#endif
/* PARSE_NODE_H */
src/include/parser/parse_oper.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_oper.h,v 1.
1 1997/11/25 22:06:59
momjian Exp $
* $Id: parse_oper.h,v 1.
2 1997/11/26 01:14:07
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -18,33 +18,23 @@
typedef
HeapTuple
Operator
;
Oid
any_ordering_op
(
int
restype
);
Oid
oprid
(
Operator
op
);
int
binary_oper_get_candidates
(
char
*
opname
,
extern
Oid
any_ordering_op
(
int
restype
);
extern
Oid
oprid
(
Operator
op
);
extern
int
binary_oper_get_candidates
(
char
*
opname
,
Oid
leftTypeId
,
Oid
rightTypeId
,
CandidateList
*
candidates
);
bool
equivalentOpersAfterPromotion
(
CandidateList
candidates
);
CandidateList
binary_oper_select_candidate
(
Oid
arg1
,
extern
bool
equivalentOpersAfterPromotion
(
CandidateList
candidates
);
extern
CandidateList
binary_oper_select_candidate
(
Oid
arg1
,
Oid
arg2
,
CandidateList
candidates
);
Operator
oper
(
char
*
op
,
Oid
arg1
,
Oid
arg2
,
bool
noWarnings
);
int
unary_oper_get_candidates
(
char
*
op
,
extern
Operator
oper
(
char
*
op
,
Oid
arg1
,
Oid
arg2
,
bool
noWarnings
);
extern
int
unary_oper_get_candidates
(
char
*
op
,
Oid
typeId
,
CandidateList
*
candidates
,
char
rightleft
);
Operator
right_oper
(
char
*
op
,
Oid
arg
);
Operator
left_oper
(
char
*
op
,
Oid
arg
);
void
op_error
(
char
*
op
,
Oid
arg1
,
Oid
arg2
);
extern
Operator
right_oper
(
char
*
op
,
Oid
arg
);
extern
Operator
left_oper
(
char
*
op
,
Oid
arg
);
extern
void
op_error
(
char
*
op
,
Oid
arg1
,
Oid
arg2
);
#endif
/* PARSE_OPER_H */
src/include/parser/parse_relation.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_relation.h,v 1.
1 1997/11/25 22:07:02
momjian Exp $
* $Id: parse_relation.h,v 1.
2 1997/11/26 01:14:08
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -20,37 +20,25 @@
#include <parser/parse_node.h>
#include <utils/rel.h>
RangeTblEntry
*
refnameRangeTableEntry
(
List
*
rtable
,
char
*
refname
);
int
refnameRangeTablePosn
(
List
*
rtable
,
char
*
refname
);
RangeTblEntry
*
colnameRangeTableEntry
(
ParseState
*
pstate
,
char
*
colname
);
RangeTblEntry
*
addRangeTableEntry
(
ParseState
*
pstate
,
extern
RangeTblEntry
*
refnameRangeTableEntry
(
List
*
rtable
,
char
*
refname
);
extern
int
refnameRangeTablePosn
(
List
*
rtable
,
char
*
refname
);
extern
RangeTblEntry
*
colnameRangeTableEntry
(
ParseState
*
pstate
,
char
*
colname
);
extern
RangeTblEntry
*
addRangeTableEntry
(
ParseState
*
pstate
,
char
*
relname
,
char
*
refname
,
bool
inh
,
bool
inFromCl
);
List
*
expandAll
(
ParseState
*
pstate
,
char
*
relname
,
char
*
refname
,
extern
List
*
expandAll
(
ParseState
*
pstate
,
char
*
relname
,
char
*
refname
,
int
*
this_resno
);
int
attnameAttNum
(
Relation
rd
,
char
*
a
);
bool
attnameIsSet
(
Relation
rd
,
char
*
name
);
char
*
attnumAttName
(
Relation
rd
,
int
attrno
);
int
attnumAttNelems
(
Relation
rd
,
int
attid
);
Oid
attnameTypeId
(
Oid
relid
,
char
*
attrname
);
Oid
attnumTypeId
(
Relation
rd
,
int
attid
);
void
handleTargetColname
(
ParseState
*
pstate
,
char
**
resname
,
extern
int
attnameAttNum
(
Relation
rd
,
char
*
a
);
extern
bool
attnameIsSet
(
Relation
rd
,
char
*
name
);
extern
char
*
attnumAttName
(
Relation
rd
,
int
attrno
);
extern
int
attnumAttNelems
(
Relation
rd
,
int
attid
);
extern
Oid
attnameTypeId
(
Oid
relid
,
char
*
attrname
);
extern
Oid
attnumTypeId
(
Relation
rd
,
int
attid
);
extern
void
handleTargetColname
(
ParseState
*
pstate
,
char
**
resname
,
char
*
refname
,
char
*
colname
);
void
checkTargetTypes
(
ParseState
*
pstate
,
char
*
target_colname
,
extern
void
checkTargetTypes
(
ParseState
*
pstate
,
char
*
target_colname
,
char
*
refname
,
char
*
colname
);
#endif
/* PARSE_RANGE_H */
src/include/parser/parse_target.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_target.h,v 1.
1 1997/11/25 22:07:06
momjian Exp $
* $Id: parse_target.h,v 1.
2 1997/11/26 01:14:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -22,18 +22,14 @@
#define EXPR_COLUMN_FIRST 1
#define EXPR_RELATION_FIRST 2
List
*
transformTargetList
(
ParseState
*
pstate
,
List
*
targetlist
);
TargetEntry
*
make_targetlist_expr
(
ParseState
*
pstate
,
extern
List
*
transformTargetList
(
ParseState
*
pstate
,
List
*
targetlist
);
extern
TargetEntry
*
make_targetlist_expr
(
ParseState
*
pstate
,
char
*
colname
,
Node
*
expr
,
List
*
arrayRef
);
List
*
expandAllTables
(
ParseState
*
pstate
);
char
*
figureColname
(
Node
*
expr
,
Node
*
resval
);
List
*
makeTargetNames
(
ParseState
*
pstate
,
List
*
cols
);
extern
List
*
expandAllTables
(
ParseState
*
pstate
);
extern
char
*
figureColname
(
Node
*
expr
,
Node
*
resval
);
extern
List
*
makeTargetNames
(
ParseState
*
pstate
,
List
*
cols
);
#endif
/* PARSE_TARGET_H */
src/include/parser/parse_type.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_type.h,v 1.
1 1997/11/25 22:07:07
momjian Exp $
* $Id: parse_type.h,v 1.
2 1997/11/26 01:14:14
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -17,21 +17,21 @@
typedef
HeapTuple
Type
;
bool
typeidIsValid
(
Oid
id
);
Type
typeidType
(
Oid
id
);
Type
typenameType
(
char
*
s
);
char
*
typeidTypeName
(
Oid
id
);
Oid
typeTypeId
(
Type
tp
);
int16
typeLen
(
Type
t
);
bool
typeByVal
(
Type
t
);
char
*
typeTypeName
(
Type
t
);
char
typeTypeFlag
(
Type
t
);
char
*
stringTypeString
(
Type
tp
,
char
*
string
,
int
typlen
);
Oid
typeidRetoutfunc
(
Oid
type_id
);
Oid
typeidTypeRelid
(
Oid
type_id
);
Oid
typeTypeRelid
(
Type
typ
);
Oid
typeidTypElem
(
Oid
type_id
);
Oid
GetArrayElementType
(
Oid
typearray
);
Oid
typeidRetinfunc
(
Oid
type_id
);
extern
bool
typeidIsValid
(
Oid
id
);
extern
Type
typeidType
(
Oid
id
);
extern
Type
typenameType
(
char
*
s
);
extern
char
*
typeidTypeName
(
Oid
id
);
extern
Oid
typeTypeId
(
Type
tp
);
extern
int16
typeLen
(
Type
t
);
extern
bool
typeByVal
(
Type
t
);
extern
char
*
typeTypeName
(
Type
t
);
extern
char
typeTypeFlag
(
Type
t
);
extern
char
*
stringTypeString
(
Type
tp
,
char
*
string
,
int
typlen
);
extern
Oid
typeidRetoutfunc
(
Oid
type_id
);
extern
Oid
typeidTypeRelid
(
Oid
type_id
);
extern
Oid
typeTypeRelid
(
Type
typ
);
extern
Oid
typeidTypElem
(
Oid
type_id
);
extern
Oid
GetArrayElementType
(
Oid
typearray
);
extern
Oid
typeidRetinfunc
(
Oid
type_id
);
#endif
/* PARSE_TYPE_H */
src/include/parser/parser.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parser.h,v 1.
1 1997/11/25 22:07:08
momjian Exp $
* $Id: parser.h,v 1.
2 1997/11/26 01:14:17
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,7 +15,7 @@
#include <parser/parse_node.h>
QueryTreeList
*
parser
(
char
*
str
,
Oid
*
typev
,
int
nargs
);
extern
QueryTreeList
*
parser
(
char
*
str
,
Oid
*
typev
,
int
nargs
);
#endif
/* PARSER_H */
src/include/parser/scansup.h
View file @
598e86f3
...
...
@@ -6,9 +6,14 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: scansup.h,v 1.
3 1997/09/08 02:38:16
momjian Exp $
* $Id: scansup.h,v 1.
4 1997/11/26 01:14:18
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef SCANSUP_H
#define SCANSUP_H
extern
char
*
scanstr
(
char
*
s
);
#endif
/* SCANSUP_H */
src/include/rewrite/rewriteDefine.h
View file @
598e86f3
...
...
@@ -6,13 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rewriteDefine.h,v 1.
4 1997/09/08 21:54:05
momjian Exp $
* $Id: rewriteDefine.h,v 1.
5 1997/11/26 01:14:22
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef REWRITEDEFINE_H
#define REWRITEDEFINE_H
#include "nodes/parsenodes.h"
extern
void
DefineQueryRewrite
(
RuleStmt
*
args
);
#endif
/* REWRITEDEFINE_H */
src/include/rewrite/rewriteHandler.h
View file @
598e86f3
...
...
@@ -6,13 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rewriteHandler.h,v 1.
4 1997/09/08 21:54:07
momjian Exp $
* $Id: rewriteHandler.h,v 1.
5 1997/11/26 01:14:23
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef REWRITEHANDLER_H
#define REWRITEHANDLER_H
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
struct
_rewrite_meta_knowledge
{
...
...
src/include/rewrite/rewriteManip.h
View file @
598e86f3
...
...
@@ -6,13 +6,17 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rewriteManip.h,v 1.
4 1997/09/08 21:54:09
momjian Exp $
* $Id: rewriteManip.h,v 1.
5 1997/11/26 01:14:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef REWRITEMANIP_H
#define REWRITEMANIP_H
#include "nodes/nodes.h"
#include "nodes/parsenodes.h"
#include "rewrite/rewriteHandler.h"
/* RewriteManip.c */
void
OffsetVarNodes
(
Node
*
node
,
int
offset
);
void
ChangeVarNodes
(
Node
*
node
,
int
old_varno
,
int
new_varno
);
...
...
src/include/rewrite/rewriteSupport.h
View file @
598e86f3
...
...
@@ -6,13 +6,15 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rewriteSupport.h,v 1.
5 1997/09/08 21:54:11
momjian Exp $
* $Id: rewriteSupport.h,v 1.
6 1997/11/26 01:14:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef REWRITESUPPORT_H
#define REWRITESUPPORT_H
#include "access/attnum.h"
#include "nodes/pg_list.h"
extern
int
IsDefinedRewriteRule
(
char
*
ruleName
);
...
...
src/include/utils/lselect.h
View file @
598e86f3
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lselect.h,v 1.
7 1997/09/08 21:55:10
momjian Exp $
* $Id: lselect.h,v 1.
8 1997/11/26 01:14:33
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -14,7 +14,11 @@
#define LSELECT_H
#include <stdio.h>
#include "access/skey.h"
#include "access/tupdesc.h"
#include "access/htup.h"
#include "utils/syscache.h"
struct
leftist
{
...
...
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