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
80f3b5ad
Commit
80f3b5ad
authored
Jun 26, 2007
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused "caller" argument from stringToQualifiedNameList.
parent
d1eaa42f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
23 deletions
+18
-23
src/backend/utils/adt/regproc.c
src/backend/utils/adt/regproc.c
+11
-15
src/backend/utils/fmgr/funcapi.c
src/backend/utils/fmgr/funcapi.c
+2
-2
src/include/utils/builtins.h
src/include/utils/builtins.h
+2
-2
src/pl/plpgsql/src/pl_comp.c
src/pl/plpgsql/src/pl_comp.c
+3
-4
No files found.
src/backend/utils/adt/regproc.c
View file @
80f3b5ad
...
...
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/regproc.c,v 1.10
1 2007/06/05 21:31:06 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/regproc.c,v 1.10
2 2007/06/26 16:48:09 alvherre
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -35,8 +35,7 @@
#include "utils/lsyscache.h"
#include "utils/syscache.h"
static
void
parseNameAndArgTypes
(
const
char
*
string
,
const
char
*
caller
,
bool
allowNone
,
static
void
parseNameAndArgTypes
(
const
char
*
string
,
bool
allowNone
,
List
**
names
,
int
*
nargs
,
Oid
*
argtypes
);
...
...
@@ -127,7 +126,7 @@ regprocin(PG_FUNCTION_ARGS)
* Normal case: parse the name into components and see if it matches any
* pg_proc entries in the current search path.
*/
names
=
stringToQualifiedNameList
(
pro_name_or_oid
,
"regprocin"
);
names
=
stringToQualifiedNameList
(
pro_name_or_oid
);
clist
=
FuncnameGetCandidates
(
names
,
-
1
);
if
(
clist
==
NULL
)
...
...
@@ -271,8 +270,7 @@ regprocedurein(PG_FUNCTION_ARGS)
* datatype cannot be used for any system column that needs to receive
* data during bootstrap.
*/
parseNameAndArgTypes
(
pro_name_or_oid
,
"regprocedurein"
,
false
,
&
names
,
&
nargs
,
argtypes
);
parseNameAndArgTypes
(
pro_name_or_oid
,
false
,
&
names
,
&
nargs
,
argtypes
);
clist
=
FuncnameGetCandidates
(
names
,
nargs
);
...
...
@@ -476,7 +474,7 @@ regoperin(PG_FUNCTION_ARGS)
* Normal case: parse the name into components and see if it matches any
* pg_operator entries in the current search path.
*/
names
=
stringToQualifiedNameList
(
opr_name_or_oid
,
"regoperin"
);
names
=
stringToQualifiedNameList
(
opr_name_or_oid
);
clist
=
OpernameGetCandidates
(
names
,
'\0'
);
if
(
clist
==
NULL
)
...
...
@@ -626,8 +624,7 @@ regoperatorin(PG_FUNCTION_ARGS)
* datatype cannot be used for any system column that needs to receive
* data during bootstrap.
*/
parseNameAndArgTypes
(
opr_name_or_oid
,
"regoperatorin"
,
true
,
&
names
,
&
nargs
,
argtypes
);
parseNameAndArgTypes
(
opr_name_or_oid
,
true
,
&
names
,
&
nargs
,
argtypes
);
if
(
nargs
==
1
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_UNDEFINED_PARAMETER
),
...
...
@@ -827,7 +824,7 @@ regclassin(PG_FUNCTION_ARGS)
* Normal case: parse the name into components and see if it matches any
* pg_class entries in the current search path.
*/
names
=
stringToQualifiedNameList
(
class_name_or_oid
,
"regclassin"
);
names
=
stringToQualifiedNameList
(
class_name_or_oid
);
result
=
RangeVarGetRelid
(
makeRangeVarFromNameList
(
names
),
false
);
...
...
@@ -1093,7 +1090,7 @@ text_regclass(PG_FUNCTION_ARGS)
* Given a C string, parse it into a qualified-name list.
*/
List
*
stringToQualifiedNameList
(
const
char
*
string
,
const
char
*
caller
)
stringToQualifiedNameList
(
const
char
*
string
)
{
char
*
rawname
;
List
*
result
=
NIL
;
...
...
@@ -1141,9 +1138,8 @@ stringToQualifiedNameList(const char *string, const char *caller)
* for unary operators).
*/
static
void
parseNameAndArgTypes
(
const
char
*
string
,
const
char
*
caller
,
bool
allowNone
,
List
**
names
,
int
*
nargs
,
Oid
*
argtypes
)
parseNameAndArgTypes
(
const
char
*
string
,
bool
allowNone
,
List
**
names
,
int
*
nargs
,
Oid
*
argtypes
)
{
char
*
rawname
;
char
*
ptr
;
...
...
@@ -1174,7 +1170,7 @@ parseNameAndArgTypes(const char *string, const char *caller,
/* Separate the name and parse it into a list */
*
ptr
++
=
'\0'
;
*
names
=
stringToQualifiedNameList
(
rawname
,
caller
);
*
names
=
stringToQualifiedNameList
(
rawname
);
/* Check for the trailing right parenthesis and remove it */
ptr2
=
ptr
+
strlen
(
ptr
);
...
...
src/backend/utils/fmgr/funcapi.c
View file @
80f3b5ad
...
...
@@ -7,7 +7,7 @@
* Copyright (c) 2002-2007, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/fmgr/funcapi.c,v 1.3
5 2007/06/06 23:00:39 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/fmgr/funcapi.c,v 1.3
6 2007/06/26 16:48:09 alvherre
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1045,7 +1045,7 @@ RelationNameGetTupleDesc(const char *relname)
List
*
relname_list
;
/* Open relation and copy the tuple description */
relname_list
=
stringToQualifiedNameList
(
relname
,
"RelationNameGetTupleDesc"
);
relname_list
=
stringToQualifiedNameList
(
relname
);
relvar
=
makeRangeVarFromNameList
(
relname_list
);
rel
=
relation_openrv
(
relvar
,
AccessShareLock
);
tupdesc
=
CreateTupleDescCopy
(
RelationGetDescr
(
rel
));
...
...
src/include/utils/builtins.h
View file @
80f3b5ad
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.29
6 2007/06/06 23:00:46 tgl
Exp $
* $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.29
7 2007/06/26 16:48:09 alvherre
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -524,7 +524,7 @@ extern Datum regtypeout(PG_FUNCTION_ARGS);
extern
Datum
regtyperecv
(
PG_FUNCTION_ARGS
);
extern
Datum
regtypesend
(
PG_FUNCTION_ARGS
);
extern
Datum
text_regclass
(
PG_FUNCTION_ARGS
);
extern
List
*
stringToQualifiedNameList
(
const
char
*
string
,
const
char
*
caller
);
extern
List
*
stringToQualifiedNameList
(
const
char
*
string
);
extern
char
*
format_procedure
(
Oid
procedure_oid
);
extern
char
*
format_operator
(
Oid
operator_oid
);
...
...
src/pl/plpgsql/src/pl_comp.c
View file @
80f3b5ad
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.11
5 2007/06/06 23:00:48 tgl
Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_comp.c,v 1.11
6 2007/06/26 16:48:09 alvherre
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1340,8 +1340,7 @@ plpgsql_parse_tripwordtype(char *word)
memcpy
(
cp
[
1
],
&
word
[
i
+
1
],
(
qualified_att_len
-
i
-
1
)
*
sizeof
(
char
));
cp
[
1
][
qualified_att_len
-
i
-
1
]
=
'\0'
;
relvar
=
makeRangeVarFromNameList
(
stringToQualifiedNameList
(
cp
[
0
],
"plpgsql_parse_tripwordtype"
));
relvar
=
makeRangeVarFromNameList
(
stringToQualifiedNameList
(
cp
[
0
]));
classOid
=
RangeVarGetRelid
(
relvar
,
true
);
if
(
!
OidIsValid
(
classOid
))
goto
done
;
...
...
@@ -1465,7 +1464,7 @@ plpgsql_parse_dblwordrowtype(char *word)
word
[
i
]
=
'%'
;
/* Lookup the relation */
relvar
=
makeRangeVarFromNameList
(
stringToQualifiedNameList
(
cp
,
"plpgsql_parse_dblwordrowtype"
));
relvar
=
makeRangeVarFromNameList
(
stringToQualifiedNameList
(
cp
));
classOid
=
RangeVarGetRelid
(
relvar
,
true
);
if
(
!
OidIsValid
(
classOid
))
ereport
(
ERROR
,
...
...
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