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
7d717f24
Commit
7d717f24
authored
May 20, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename static variables to avoid possible name conflicts on systems with
dirty standard headers (eg AIX).
parent
40296aa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/bin/pg_dump/common.c
src/bin/pg_dump/common.c
+11
-11
No files found.
src/bin/pg_dump/common.c
View file @
7d717f24
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.8
1 2004/03/03 21:28:54
tgl Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.8
2 2004/05/20 17:13:52
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -50,8 +50,8 @@ static int numCatalogIds = 0;
* them into findTableByOid() and friends.
*/
static
TableInfo
*
tblinfo
;
static
TypeInfo
*
tinfo
;
static
FuncInfo
*
finfo
;
static
TypeInfo
*
t
yp
info
;
static
FuncInfo
*
f
un
info
;
static
OprInfo
*
oprinfo
;
static
int
numTables
;
static
int
numTypes
;
...
...
@@ -101,12 +101,12 @@ getSchemaData(int *numTablesPtr,
if
(
g_verbose
)
write_msg
(
NULL
,
"reading user-defined functions
\n
"
);
finfo
=
getFuncs
(
&
numFuncs
);
f
un
info
=
getFuncs
(
&
numFuncs
);
/* this must be after getFuncs */
if
(
g_verbose
)
write_msg
(
NULL
,
"reading user-defined types
\n
"
);
tinfo
=
getTypes
(
&
numTypes
);
t
yp
info
=
getTypes
(
&
numTypes
);
/* this must be after getFuncs, too */
if
(
g_verbose
)
...
...
@@ -631,7 +631,7 @@ findTableByOid(Oid oid)
/*
* findTypeByOid
* finds the entry (in tinfo) of the type with the given oid
* finds the entry (in t
yp
info) of the type with the given oid
* returns NULL if not found
*
* NOTE: should hash this, but just do linear search for now
...
...
@@ -643,15 +643,15 @@ findTypeByOid(Oid oid)
for
(
i
=
0
;
i
<
numTypes
;
i
++
)
{
if
(
tinfo
[
i
].
dobj
.
catId
.
oid
==
oid
)
return
&
tinfo
[
i
];
if
(
t
yp
info
[
i
].
dobj
.
catId
.
oid
==
oid
)
return
&
t
yp
info
[
i
];
}
return
NULL
;
}
/*
* findFuncByOid
* finds the entry (in finfo) of the function with the given oid
* finds the entry (in f
un
info) of the function with the given oid
* returns NULL if not found
*
* NOTE: should hash this, but just do linear search for now
...
...
@@ -663,8 +663,8 @@ findFuncByOid(Oid oid)
for
(
i
=
0
;
i
<
numFuncs
;
i
++
)
{
if
(
finfo
[
i
].
dobj
.
catId
.
oid
==
oid
)
return
&
finfo
[
i
];
if
(
f
un
info
[
i
].
dobj
.
catId
.
oid
==
oid
)
return
&
f
un
info
[
i
];
}
return
NULL
;
}
...
...
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