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
d433a362
Commit
d433a362
authored
Apr 21, 2002
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make pg_dump independent of FUNC_MAX_ARGS.
parent
5a996715
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+9
-10
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump.h
+2
-2
No files found.
src/bin/pg_dump/pg_dump.c
View file @
d433a362
...
...
@@ -22,7 +22,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.25
0 2002/04/19 23:13:54 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.25
1 2002/04/21 05:21:17 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1636,9 +1636,13 @@ clearFuncInfo(FuncInfo *fun, int numFuncs)
free
(
fun
[
i
].
proname
);
if
(
fun
[
i
].
usename
)
free
(
fun
[
i
].
usename
);
for
(
a
=
0
;
a
<
FUNC_MAX_ARGS
;
++
a
)
if
(
fun
[
i
].
argtypes
[
a
])
free
(
fun
[
i
].
argtypes
[
a
]);
if
(
fun
[
i
].
argtypes
)
{
for
(
a
=
0
;
a
<
fun
[
i
].
nargs
;
++
a
)
if
(
fun
[
i
].
argtypes
[
a
])
free
(
fun
[
i
].
argtypes
[
a
]);
free
(
fun
[
i
].
argtypes
);
}
if
(
fun
[
i
].
prorettype
)
free
(
fun
[
i
].
prorettype
);
if
(
fun
[
i
].
prosrc
)
...
...
@@ -2066,12 +2070,7 @@ getFuncs(int *numFuncs)
write_msg
(
NULL
,
"WARNING: owner of function
\"
%s
\"
appears to be invalid
\n
"
,
finfo
[
i
].
proname
);
if
(
finfo
[
i
].
nargs
<
0
||
finfo
[
i
].
nargs
>
FUNC_MAX_ARGS
)
{
write_msg
(
NULL
,
"failed sanity check: function %s has more than %d (namely %d) arguments
\n
"
,
finfo
[
i
].
proname
,
FUNC_MAX_ARGS
,
finfo
[
i
].
nargs
);
exit_nicely
();
}
finfo
[
i
].
argtypes
=
malloc
(
finfo
[
i
].
nargs
*
sizeof
(
finfo
[
i
].
argtypes
[
0
]));
parseNumericArray
(
PQgetvalue
(
res
,
i
,
i_proargtypes
),
finfo
[
i
].
argtypes
,
finfo
[
i
].
nargs
);
...
...
src/bin/pg_dump/pg_dump.h
View file @
d433a362
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_dump.h,v 1.8
1 2002/04/11 20:00:08 tgl
Exp $
* $Id: pg_dump.h,v 1.8
2 2002/04/21 05:21:18 petere
Exp $
*
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
*
...
...
@@ -66,7 +66,7 @@ typedef struct _funcInfo
char
*
proowner
;
Oid
lang
;
int
nargs
;
char
*
argtypes
[
FUNC_MAX_ARGS
]
;
char
*
*
argtypes
;
char
*
prorettype
;
int
retset
;
/* 1 if the function returns a set, else 0 */
char
*
prosrc
;
...
...
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