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
c9b128fc
Commit
c9b128fc
authored
Aug 16, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move funcid_get_rettype() to lsyscache.
parent
b1baf1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
23 deletions
+3
-23
src/backend/parser/parse_func.c
src/backend/parser/parse_func.c
+3
-23
No files found.
src/backend/parser/parse_func.c
View file @
c9b128fc
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.5
1 1999/08/05 02:33:54
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.5
2 1999/08/16 02:08:59
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -52,7 +52,6 @@ func_get_detail(char *funcname,
...
@@ -52,7 +52,6 @@ func_get_detail(char *funcname,
Oid
*
rettype
,
/* return value */
Oid
*
rettype
,
/* return value */
bool
*
retset
,
/* return value */
bool
*
retset
,
/* return value */
Oid
**
true_typeids
);
Oid
**
true_typeids
);
static
Oid
funcid_get_rettype
(
Oid
funcid
);
static
Oid
**
gen_cross_product
(
InhPaths
*
arginh
,
int
nargs
);
static
Oid
**
gen_cross_product
(
InhPaths
*
arginh
,
int
nargs
);
static
void
make_arguments
(
ParseState
*
pstate
,
static
void
make_arguments
(
ParseState
*
pstate
,
int
nargs
,
int
nargs
,
...
@@ -629,25 +628,6 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
...
@@ -629,25 +628,6 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
return
retval
;
return
retval
;
}
}
static
Oid
funcid_get_rettype
(
Oid
funcid
)
{
HeapTuple
func_tuple
=
NULL
;
Oid
funcrettype
=
InvalidOid
;
func_tuple
=
SearchSysCacheTuple
(
PROOID
,
ObjectIdGetDatum
(
funcid
),
0
,
0
,
0
);
if
(
!
HeapTupleIsValid
(
func_tuple
))
elog
(
ERROR
,
"Function OID %u does not exist"
,
funcid
);
funcrettype
=
(
Oid
)
((
Form_pg_proc
)
GETSTRUCT
(
func_tuple
))
->
prorettype
;
return
funcrettype
;
}
/* func_get_candidates()
/* func_get_candidates()
* get a list of all argument type vectors for which a function named
* get a list of all argument type vectors for which a function named
...
@@ -1378,7 +1358,7 @@ ParseComplexProjection(ParseState *pstate,
...
@@ -1378,7 +1358,7 @@ ParseComplexProjection(ParseState *pstate,
iter
=
(
Iter
*
)
first_arg
;
iter
=
(
Iter
*
)
first_arg
;
func
=
(
Func
*
)
((
Expr
*
)
iter
->
iterexpr
)
->
oper
;
func
=
(
Func
*
)
((
Expr
*
)
iter
->
iterexpr
)
->
oper
;
argtype
=
funcid_get
_rettype
(
func
->
funcid
);
argtype
=
get_func
_rettype
(
func
->
funcid
);
argrelid
=
typeidTypeRelid
(
argtype
);
argrelid
=
typeidTypeRelid
(
argtype
);
if
(
argrelid
&&
if
(
argrelid
&&
((
attnum
=
get_attnum
(
argrelid
,
funcname
))
((
attnum
=
get_attnum
(
argrelid
,
funcname
))
...
@@ -1435,7 +1415,7 @@ ParseComplexProjection(ParseState *pstate,
...
@@ -1435,7 +1415,7 @@ ParseComplexProjection(ParseState *pstate,
break
;
break
;
funcnode
=
(
Func
*
)
expr
->
oper
;
funcnode
=
(
Func
*
)
expr
->
oper
;
argtype
=
funcid_get
_rettype
(
funcnode
->
funcid
);
argtype
=
get_func
_rettype
(
funcnode
->
funcid
);
argrelid
=
typeidTypeRelid
(
argtype
);
argrelid
=
typeidTypeRelid
(
argtype
);
/*
/*
...
...
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