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
2fd831d3
Commit
2fd831d3
authored
May 18, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename ParseFuncOrColumn() to ParseColumnOrFunc().
parent
dc0ff5c6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
19 deletions
+22
-19
src/backend/catalog/index.c
src/backend/catalog/index.c
+2
-2
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+4
-4
src/backend/parser/parse_func.c
src/backend/parser/parse_func.c
+11
-8
src/backend/utils/adt/format_type.c
src/backend/utils/adt/format_type.c
+3
-3
src/include/parser/parse_func.h
src/include/parser/parse_func.h
+2
-2
No files found.
src/backend/catalog/index.c
View file @
2fd831d3
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.15
0 2001/05/16 22:36:03
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.15
1 2001/05/18 22:35:50
momjian Exp $
*
*
* INTERFACE ROUTINES
...
...
@@ -2175,12 +2175,12 @@ reindex_relation(Oid relid, bool force)
heap_endscan
(
scan
);
heap_close
(
indexRelation
,
AccessShareLock
);
if
(
reindexed
)
{
/*
* Ok,we could use the reindexed indexes of the target system
* relation now.
*/
{
if
(
deactivate_needed
)
{
if
(
!
overwrite
&&
relid
==
RelOid_pg_class
)
...
...
src/backend/parser/parse_expr.c
View file @
2fd831d3
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
3 2001/05/18 21:24:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.9
4 2001/05/18 22:35:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -173,7 +173,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
a
->
lexpr
,
precedence
);
result
=
Parse
FuncOrColumn
(
pstate
,
result
=
Parse
ColumnOrFunc
(
pstate
,
"nullvalue"
,
makeList1
(
lexpr
),
false
,
false
,
...
...
@@ -186,7 +186,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
a
->
lexpr
,
precedence
);
result
=
Parse
FuncOrColumn
(
pstate
,
result
=
Parse
ColumnOrFunc
(
pstate
,
"nonnullvalue"
,
makeList1
(
lexpr
),
false
,
false
,
...
...
@@ -273,7 +273,7 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
lfirst
(
args
)
=
transformExpr
(
pstate
,
(
Node
*
)
lfirst
(
args
),
precedence
);
result
=
Parse
FuncOrColumn
(
pstate
,
result
=
Parse
ColumnOrFunc
(
pstate
,
fn
->
funcname
,
fn
->
args
,
fn
->
agg_star
,
...
...
src/backend/parser/parse_func.c
View file @
2fd831d3
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10
3 2001/05/18 21:24:19
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.10
4 2001/05/18 22:35:50
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -75,7 +75,7 @@ ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, int precedence)
(
Node
*
)
attr
->
paramNo
,
EXPR_RELATION_FIRST
);
retval
=
Parse
FuncOrColumn
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
retval
=
Parse
ColumnOrFunc
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
makeList1
(
param
),
false
,
false
,
precedence
);
...
...
@@ -86,7 +86,7 @@ ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, int precedence)
ident
->
name
=
attr
->
relname
;
ident
->
isRel
=
TRUE
;
retval
=
Parse
FuncOrColumn
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
retval
=
Parse
ColumnOrFunc
(
pstate
,
strVal
(
lfirst
(
attr
->
attrs
)),
makeList1
(
ident
),
false
,
false
,
precedence
);
...
...
@@ -95,7 +95,7 @@ ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, int precedence)
/* Do more attributes follow this one? */
foreach
(
mutator_iter
,
lnext
(
attr
->
attrs
))
{
retval
=
Parse
FuncOrColumn
(
pstate
,
strVal
(
lfirst
(
mutator_iter
)),
retval
=
Parse
ColumnOrFunc
(
pstate
,
strVal
(
lfirst
(
mutator_iter
)),
makeList1
(
retval
),
false
,
false
,
precedence
);
...
...
@@ -235,10 +235,13 @@ agg_select_candidate(Oid typeid, CandidateList candidates)
/*
* parse function
* parse function
* This code is confusing code because the database can accept relation.column
* column.function, or relation.column.function.
* Funcname is the first parameter, and fargs are the rest.
*/
Node
*
Parse
FuncOrColumn
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
Parse
ColumnOrFunc
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
bool
agg_star
,
bool
agg_distinct
,
int
precedence
)
{
...
...
@@ -486,7 +489,7 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
}
else
{
elog
(
ERROR
,
"Parse
FuncOrColumn
: unexpected node type %d"
,
elog
(
ERROR
,
"Parse
ColumnOrFunc
: unexpected node type %d"
,
nodeTag
(
rteorjoin
));
rte
=
NULL
;
/* keep compiler quiet */
}
...
...
@@ -1535,7 +1538,7 @@ make_arguments(ParseState *pstate,
/*
** setup_field_select
** Build a FieldSelect node that says which attribute to project to.
** This routine is called by Parse
FuncOrColumn
() when we have found
** This routine is called by Parse
ColumnOrFunc
() when we have found
** a projection on a function result or parameter.
*/
static
FieldSelect
*
...
...
src/backend/utils/adt/format_type.c
View file @
2fd831d3
...
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/format_type.c,v 1.1
0 2001/03/22 03:59:50
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/format_type.c,v 1.1
1 2001/05/18 22:35:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -174,11 +174,11 @@ format_type_internal(Oid type_oid, int32 typemod)
break
;
case
TIMETZOID
:
buf
=
pstrdup
(
"time
with
time zone"
);
buf
=
pstrdup
(
"time
&
time zone"
);
break
;
case
TIMESTAMPOID
:
buf
=
pstrdup
(
"timestamp
with
time zone"
);
buf
=
pstrdup
(
"timestamp
&
time zone"
);
break
;
case
VARBITOID
:
...
...
src/include/parser/parse_func.h
View file @
2fd831d3
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_func.h,v 1.
29 2001/03/22 04:00:57
momjian Exp $
* $Id: parse_func.h,v 1.
30 2001/05/18 22:35:51
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -40,7 +40,7 @@ typedef struct _CandidateList
extern
Node
*
ParseNestedFuncOrColumn
(
ParseState
*
pstate
,
Attr
*
attr
,
int
precedence
);
extern
Node
*
Parse
FuncOrColumn
(
ParseState
*
pstate
,
extern
Node
*
Parse
ColumnOrFunc
(
ParseState
*
pstate
,
char
*
funcname
,
List
*
fargs
,
bool
agg_star
,
bool
agg_distinct
,
int
precedence
);
...
...
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