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
de466eb8
Commit
de466eb8
authored
Oct 07, 1996
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mostly adding "const" keyword and making some functions static.
Submitted by: D'Arcy Cain
parent
257b4d09
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
62 deletions
+62
-62
src/backend/catalog/pg_operator.c
src/backend/catalog/pg_operator.c
+3
-3
src/backend/include/miscadmin.h
src/backend/include/miscadmin.h
+4
-4
src/backend/utils/init/magic.c
src/backend/utils/init/magic.c
+7
-7
src/bin/pg_dump/common.c
src/bin/pg_dump/common.c
+12
-12
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+17
-17
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump.h
+19
-19
No files found.
src/backend/catalog/pg_operator.c
View file @
de466eb8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.
1.1.1 1996/07/09 06:21:17
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.
2 1996/10/07 03:27:48
scrappy Exp $
*
*
* NOTES
* NOTES
* these routines moved here from commands/define.c and somewhat cleaned up.
* these routines moved here from commands/define.c and somewhat cleaned up.
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include "fmgr.h"
#include "fmgr.h"
static
Oid
OperatorGetWithOpenRelation
(
Relation
pg_operator_desc
,
static
Oid
OperatorGetWithOpenRelation
(
Relation
pg_operator_desc
,
char
*
operatorName
,
c
onst
c
har
*
operatorName
,
Oid
leftObjectId
,
Oid
leftObjectId
,
Oid
rightObjectId
);
Oid
rightObjectId
);
static
Oid
OperatorGet
(
char
*
operatorName
,
static
Oid
OperatorGet
(
char
*
operatorName
,
...
@@ -79,7 +79,7 @@ static void OperatorUpd(Oid baseId , Oid commId , Oid negId );
...
@@ -79,7 +79,7 @@ static void OperatorUpd(Oid baseId , Oid commId , Oid negId );
*/
*/
static
Oid
static
Oid
OperatorGetWithOpenRelation
(
Relation
pg_operator_desc
,
OperatorGetWithOpenRelation
(
Relation
pg_operator_desc
,
char
*
operatorName
,
c
onst
c
har
*
operatorName
,
Oid
leftObjectId
,
Oid
leftObjectId
,
Oid
rightObjectId
)
Oid
rightObjectId
)
{
{
...
...
src/backend/include/miscadmin.h
View file @
de466eb8
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: miscadmin.h,v 1.
3 1996/09/19 20:02:53
scrappy Exp $
* $Id: miscadmin.h,v 1.
4 1996/10/07 03:28:12
scrappy Exp $
*
*
* NOTES
* NOTES
* some of the information in this file will be moved to
* some of the information in this file will be moved to
...
@@ -186,8 +186,8 @@ extern ProcessingMode GetProcessingMode(void);
...
@@ -186,8 +186,8 @@ extern ProcessingMode GetProcessingMode(void);
/*
/*
* Prototypes for utils/init/magic.c
* Prototypes for utils/init/magic.c
*/
*/
extern
int
DatabaseMetaGunkIsConsistent
(
c
har
database
[],
char
path
[]
);
extern
int
DatabaseMetaGunkIsConsistent
(
c
onst
char
*
database
,
char
*
path
);
extern
int
ValidPgVersion
(
c
har
path
[]
);
extern
int
ValidPgVersion
(
c
onst
char
*
path
);
extern
void
SetPgVersion
(
c
har
path
[]
);
extern
void
SetPgVersion
(
c
onst
char
*
path
);
#endif
/* MISCADMIN_H */
#endif
/* MISCADMIN_H */
src/backend/utils/init/magic.c
View file @
de466eb8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/magic.c,v 1.
1.1.1 1996/07/09 06:22:09
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/magic.c,v 1.
2 1996/10/07 03:29:30
scrappy Exp $
*
*
* NOTES
* NOTES
* XXX eventually, should be able to handle version identifiers
* XXX eventually, should be able to handle version identifiers
...
@@ -37,7 +37,7 @@ static char Pg_verfile[] = PG_VERFILE;
...
@@ -37,7 +37,7 @@ static char Pg_verfile[] = PG_VERFILE;
/*
/*
* private function prototypes
* private function prototypes
*/
*/
static
void
PathSetVersionFilePath
(
c
har
path
[],
char
filepathbuf
[]
);
static
void
PathSetVersionFilePath
(
c
onst
char
*
path
,
char
*
filepathbuf
);
/*
/*
* DatabaseMetaGunkIsConsistent
* DatabaseMetaGunkIsConsistent
...
@@ -48,7 +48,7 @@ static void PathSetVersionFilePath(char path[], char filepathbuf[]);
...
@@ -48,7 +48,7 @@ static void PathSetVersionFilePath(char path[], char filepathbuf[]);
* and checking the existence of the database whether Noversion is set or not.
* and checking the existence of the database whether Noversion is set or not.
*/
*/
int
int
DatabaseMetaGunkIsConsistent
(
char
*
database
,
char
*
path
)
DatabaseMetaGunkIsConsistent
(
c
onst
c
har
*
database
,
char
*
path
)
{
{
int
isValid
;
int
isValid
;
#ifndef WIN32
#ifndef WIN32
...
@@ -80,7 +80,7 @@ DatabaseMetaGunkIsConsistent(char *database, char *path)
...
@@ -80,7 +80,7 @@ DatabaseMetaGunkIsConsistent(char *database, char *path)
* version number.
* version number.
*/
*/
int
int
ValidPgVersion
(
char
*
path
)
ValidPgVersion
(
c
onst
c
har
*
path
)
{
{
int
fd
;
int
fd
;
char
version
[
4
],
buf
[
MAXPGPATH
+
1
];
char
version
[
4
],
buf
[
MAXPGPATH
+
1
];
...
@@ -131,7 +131,7 @@ ValidPgVersion(char *path)
...
@@ -131,7 +131,7 @@ ValidPgVersion(char *path)
* SetPgVersion - writes the version to a database directory
* SetPgVersion - writes the version to a database directory
*/
*/
void
void
SetPgVersion
(
char
*
path
)
SetPgVersion
(
c
onst
c
har
*
path
)
{
{
int
fd
;
int
fd
;
char
version
[
4
],
buf
[
MAXPGPATH
+
1
];
char
version
[
4
],
buf
[
MAXPGPATH
+
1
];
...
@@ -159,9 +159,9 @@ SetPgVersion(char *path)
...
@@ -159,9 +159,9 @@ SetPgVersion(char *path)
* and the name of the version file name.
* and the name of the version file name.
*/
*/
static
void
static
void
PathSetVersionFilePath
(
char
*
path
,
char
*
filepathbuf
)
PathSetVersionFilePath
(
c
onst
c
har
*
path
,
char
*
filepathbuf
)
{
{
if
(
strlen
(
path
)
>
(
MAXPGPATH
-
sizeof
(
Pg_verfile
)
-
1
))
if
(
strlen
(
path
)
>
(
MAXPGPATH
-
sizeof
(
Pg_verfile
)
-
1
))
elog
(
FATAL
,
"PathSetVersionFilePath: %s: path too long"
);
elog
(
FATAL
,
"PathSetVersionFilePath: %s: path too long"
);
(
void
)
sprintf
(
filepathbuf
,
"%s%c%s"
,
path
,
SEP_CHAR
,
Pg_verfile
);
sprintf
(
filepathbuf
,
"%s%c%s"
,
path
,
SEP_CHAR
,
Pg_verfile
);
}
}
src/bin/pg_dump/common.c
View file @
de466eb8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.
5 1996/09/16 06:05:47
scrappy Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.
6 1996/10/07 03:30:31
scrappy Exp $
*
*
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
*
*
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
*/
*/
char
*
char
*
findTypeByOid
(
TypeInfo
*
tinfo
,
int
numTypes
,
char
*
oid
)
findTypeByOid
(
TypeInfo
*
tinfo
,
int
numTypes
,
c
onst
c
har
*
oid
)
{
{
int
i
;
int
i
;
...
@@ -68,7 +68,7 @@ findTypeByOid(TypeInfo* tinfo, int numTypes, char* oid)
...
@@ -68,7 +68,7 @@ findTypeByOid(TypeInfo* tinfo, int numTypes, char* oid)
*
*
*/
*/
char
*
char
*
findOprByOid
(
OprInfo
*
oprinfo
,
int
numOprs
,
char
*
oid
)
findOprByOid
(
OprInfo
*
oprinfo
,
int
numOprs
,
c
onst
c
har
*
oid
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
numOprs
;
i
++
)
{
for
(
i
=
0
;
i
<
numOprs
;
i
++
)
{
...
@@ -94,7 +94,7 @@ findOprByOid(OprInfo *oprinfo, int numOprs, char *oid)
...
@@ -94,7 +94,7 @@ findOprByOid(OprInfo *oprinfo, int numOprs, char *oid)
char
**
char
**
findParentsByOid
(
TableInfo
*
tblinfo
,
int
numTables
,
findParentsByOid
(
TableInfo
*
tblinfo
,
int
numTables
,
InhInfo
*
inhinfo
,
int
numInherits
,
char
*
oid
,
InhInfo
*
inhinfo
,
int
numInherits
,
c
onst
c
har
*
oid
,
int
*
numParentsPtr
)
int
*
numParentsPtr
)
{
{
int
i
,
j
;
int
i
,
j
;
...
@@ -134,7 +134,7 @@ findParentsByOid(TableInfo* tblinfo, int numTables,
...
@@ -134,7 +134,7 @@ findParentsByOid(TableInfo* tblinfo, int numTables,
*/
*/
void
void
parseArgTypes
(
char
**
argtypes
,
char
*
str
)
parseArgTypes
(
char
**
argtypes
,
c
onst
c
har
*
str
)
{
{
int
j
,
argNum
;
int
j
,
argNum
;
char
temp
[
100
];
char
temp
[
100
];
...
@@ -171,7 +171,7 @@ parseArgTypes(char **argtypes, char* str)
...
@@ -171,7 +171,7 @@ parseArgTypes(char **argtypes, char* str)
*/
*/
int
int
strInArray
(
char
*
pattern
,
char
**
arr
,
int
arr_size
)
strInArray
(
c
onst
c
har
*
pattern
,
char
**
arr
,
int
arr_size
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
arr_size
;
i
++
)
{
for
(
i
=
0
;
i
<
arr_size
;
i
++
)
{
...
@@ -189,7 +189,7 @@ strInArray(char* pattern, char** arr, int arr_size)
...
@@ -189,7 +189,7 @@ strInArray(char* pattern, char** arr, int arr_size)
*/
*/
TableInfo
*
TableInfo
*
dumpSchema
(
FILE
*
fout
,
int
*
numTablesPtr
,
char
*
tablename
)
dumpSchema
(
FILE
*
fout
,
int
*
numTablesPtr
,
c
onst
c
har
*
tablename
)
{
{
int
numTypes
;
int
numTypes
;
int
numFuncs
;
int
numFuncs
;
...
@@ -279,7 +279,7 @@ if (!tablename && fout) {
...
@@ -279,7 +279,7 @@ if (!tablename && fout) {
*/
*/
extern
void
extern
void
dumpSchemaIdx
(
FILE
*
fout
,
int
*
numTablesPtr
,
char
*
tablename
,
dumpSchemaIdx
(
FILE
*
fout
,
int
*
numTablesPtr
,
c
onst
c
har
*
tablename
,
TableInfo
*
tblinfo
,
int
numTables
)
TableInfo
*
tblinfo
,
int
numTables
)
{
{
int
numIndices
;
int
numIndices
;
...
@@ -344,7 +344,7 @@ flagInhAttrs(TableInfo* tblinfo, int numTables,
...
@@ -344,7 +344,7 @@ flagInhAttrs(TableInfo* tblinfo, int numTables,
*/
*/
int
int
findTableByName
(
TableInfo
*
tblinfo
,
int
numTables
,
char
*
relname
)
findTableByName
(
TableInfo
*
tblinfo
,
int
numTables
,
c
onst
c
har
*
relname
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
...
@@ -363,7 +363,7 @@ findTableByName(TableInfo* tblinfo, int numTables, char* relname)
...
@@ -363,7 +363,7 @@ findTableByName(TableInfo* tblinfo, int numTables, char* relname)
*/
*/
int
int
findTableByOid
(
TableInfo
*
tblinfo
,
int
numTables
,
char
*
oid
)
findTableByOid
(
TableInfo
*
tblinfo
,
int
numTables
,
c
onst
c
har
*
oid
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
...
@@ -383,7 +383,7 @@ findTableByOid(TableInfo* tblinfo, int numTables, char* oid)
...
@@ -383,7 +383,7 @@ findTableByOid(TableInfo* tblinfo, int numTables, char* oid)
*/
*/
int
int
findFuncByName
(
FuncInfo
*
finfo
,
int
numFuncs
,
char
*
name
)
findFuncByName
(
FuncInfo
*
finfo
,
int
numFuncs
,
c
onst
c
har
*
name
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
numFuncs
;
i
++
)
{
for
(
i
=
0
;
i
<
numFuncs
;
i
++
)
{
...
@@ -399,7 +399,7 @@ findFuncByName(FuncInfo* finfo, int numFuncs, char* name)
...
@@ -399,7 +399,7 @@ findFuncByName(FuncInfo* finfo, int numFuncs, char* name)
* returns true if the relation name is an archive name, false otherwise
* returns true if the relation name is an archive name, false otherwise
*/
*/
int
int
isArchiveName
(
char
*
relname
)
isArchiveName
(
c
onst
c
har
*
relname
)
{
{
return
(
strlen
(
relname
)
>
1
&&
relname
[
1
]
==
','
);
return
(
strlen
(
relname
)
>
1
&&
relname
[
1
]
==
','
);
}
}
...
...
src/bin/pg_dump/pg_dump.c
View file @
de466eb8
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.
9 1996/10/02 21:38:35
scrappy Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.
10 1996/10/07 03:30:37
scrappy Exp $
*
*
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
*
*
...
@@ -75,7 +75,7 @@ char g_comment_end[10];
...
@@ -75,7 +75,7 @@ char g_comment_end[10];
static
void
static
void
usage
(
char
*
progname
)
usage
(
c
onst
c
har
*
progname
)
{
{
fprintf
(
stderr
,
"%s - version 1.13.dhb.2
\n\n
"
,
progname
);
fprintf
(
stderr
,
"%s - version 1.13.dhb.2
\n\n
"
,
progname
);
fprintf
(
stderr
,
"usage: %s [options] [dbname]
\n
"
,
progname
);
fprintf
(
stderr
,
"usage: %s [options] [dbname]
\n
"
,
progname
);
...
@@ -98,7 +98,7 @@ usage(char* progname)
...
@@ -98,7 +98,7 @@ usage(char* progname)
exit
(
1
);
exit
(
1
);
}
}
void
static
void
exit_nicely
(
PGconn
*
conn
)
exit_nicely
(
PGconn
*
conn
)
{
{
PQfinish
(
conn
);
PQfinish
(
conn
);
...
@@ -106,18 +106,18 @@ exit_nicely(PGconn* conn)
...
@@ -106,18 +106,18 @@ exit_nicely(PGconn* conn)
}
}
void
int
main
(
int
argc
,
char
**
argv
)
main
(
int
argc
,
char
**
argv
)
{
{
int
c
;
int
c
;
char
*
progname
;
c
onst
c
har
*
progname
;
char
*
filename
;
c
onst
c
har
*
filename
;
char
*
dbname
;
c
onst
c
har
*
dbname
;
int
schemaOnly
;
int
schemaOnly
;
int
dataOnly
;
int
dataOnly
;
char
*
pghost
=
NULL
;
c
onst
c
har
*
pghost
=
NULL
;
char
*
pgport
=
NULL
;
c
onst
c
har
*
pgport
=
NULL
;
char
*
tablename
;
c
onst
c
har
*
tablename
;
int
oids
;
int
oids
;
TableInfo
*
tblinfo
;
TableInfo
*
tblinfo
;
int
numTables
;
int
numTables
;
...
@@ -1200,7 +1200,7 @@ void dumpTables(FILE* fout, TableInfo *tblinfo, int numTables,
...
@@ -1200,7 +1200,7 @@ void dumpTables(FILE* fout, TableInfo *tblinfo, int numTables,
char
**
parentRels
;
/* list of names of parent relations */
char
**
parentRels
;
/* list of names of parent relations */
int
numParents
;
int
numParents
;
int
actual_atts
;
/* number of attrs in this CREATE statment */
int
actual_atts
;
/* number of attrs in this CREATE statment */
char
*
archiveMode
;
c
onst
c
har
*
archiveMode
;
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
for
(
i
=
0
;
i
<
numTables
;
i
++
)
{
...
@@ -1300,12 +1300,12 @@ void dumpTables(FILE* fout, TableInfo *tblinfo, int numTables,
...
@@ -1300,12 +1300,12 @@ void dumpTables(FILE* fout, TableInfo *tblinfo, int numTables,
*/
*/
void
void
dumpIndices
(
FILE
*
fout
,
IndInfo
*
indinfo
,
int
numIndices
,
dumpIndices
(
FILE
*
fout
,
IndInfo
*
indinfo
,
int
numIndices
,
TableInfo
*
tblinfo
,
int
numTables
,
char
*
tablename
)
TableInfo
*
tblinfo
,
int
numTables
,
c
onst
c
har
*
tablename
)
{
{
int
i
;
int
i
;
int
tableInd
;
int
tableInd
;
char
*
attname
;
/* the name of the indexed attribute */
c
onst
c
har
*
attname
;
/* the name of the indexed attribute */
char
*
funcname
;
/* the name of the function to comput the index key from*/
c
onst
c
har
*
funcname
;
/* the name of the function to comput the index key from*/
int
indkey
;
int
indkey
;
char
q
[
MAXQUERYLEN
];
char
q
[
MAXQUERYLEN
];
...
@@ -1361,7 +1361,7 @@ dumpIndices(FILE* fout, IndInfo* indinfo, int numIndices,
...
@@ -1361,7 +1361,7 @@ dumpIndices(FILE* fout, IndInfo* indinfo, int numIndices,
* dump the contents of all the classes.
* dump the contents of all the classes.
*/
*/
void
void
dumpClasses
(
TableInfo
*
tblinfo
,
int
numTables
,
FILE
*
fout
,
char
*
onlytable
,
int
oids
)
dumpClasses
(
TableInfo
*
tblinfo
,
int
numTables
,
FILE
*
fout
,
c
onst
c
har
*
onlytable
,
int
oids
)
{
{
char
query
[
255
];
char
query
[
255
];
#define COPYBUFSIZ 8192
#define COPYBUFSIZ 8192
...
@@ -1605,7 +1605,7 @@ setMaxOid(FILE *fout)
...
@@ -1605,7 +1605,7 @@ setMaxOid(FILE *fout)
*/
*/
int
int
findLastBuiltinOid
()
findLastBuiltinOid
(
void
)
{
{
PGresult
*
res
;
PGresult
*
res
;
int
ntups
;
int
ntups
;
...
@@ -1634,7 +1634,7 @@ findLastBuiltinOid()
...
@@ -1634,7 +1634,7 @@ findLastBuiltinOid()
* checks a string for quote characters and quotes them
* checks a string for quote characters and quotes them
*/
*/
char
*
char
*
checkForQuote
(
char
*
s
)
checkForQuote
(
c
onst
c
har
*
s
)
{
{
char
*
r
;
char
*
r
;
char
c
;
char
c
;
...
...
src/bin/pg_dump/pg_dump.h
View file @
de466eb8
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_dump.h,v 1.
6 1996/09/23 18:15:41
scrappy Exp $
* $Id: pg_dump.h,v 1.
7 1996/10/07 03:30:40
scrappy Exp $
*
*
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
*
*
...
@@ -141,27 +141,27 @@ extern char g_opaque_type[10]; /* name for the opaque type */
...
@@ -141,27 +141,27 @@ extern char g_opaque_type[10]; /* name for the opaque type */
* common utility functions
* common utility functions
*/
*/
extern
TableInfo
*
dumpSchema
(
FILE
*
fout
,
int
*
numTablesPtr
,
char
*
tablename
);
extern
TableInfo
*
dumpSchema
(
FILE
*
fout
,
int
*
numTablesPtr
,
c
onst
c
har
*
tablename
);
extern
void
dumpSchemaIdx
(
FILE
*
fout
,
int
*
numTablesPtr
,
char
*
tablename
,
extern
void
dumpSchemaIdx
(
FILE
*
fout
,
int
*
numTablesPtr
,
c
onst
c
har
*
tablename
,
TableInfo
*
tblinfo
,
int
numTables
);
TableInfo
*
tblinfo
,
int
numTables
);
extern
char
*
findTypeByOid
(
TypeInfo
*
tinfo
,
int
numTypes
,
char
*
oid
);
extern
char
*
findTypeByOid
(
TypeInfo
*
tinfo
,
int
numTypes
,
c
onst
c
har
*
oid
);
extern
char
*
findOprByOid
(
OprInfo
*
oprinfo
,
int
numOprs
,
char
*
oid
);
extern
char
*
findOprByOid
(
OprInfo
*
oprinfo
,
int
numOprs
,
c
onst
c
har
*
oid
);
extern
int
findFuncByName
(
FuncInfo
*
finfo
,
int
numFuncs
,
char
*
name
);
extern
int
findFuncByName
(
FuncInfo
*
finfo
,
int
numFuncs
,
c
onst
c
har
*
name
);
extern
char
**
findParentsByOid
(
TableInfo
*
tbinfo
,
int
numTables
,
extern
char
**
findParentsByOid
(
TableInfo
*
tbinfo
,
int
numTables
,
InhInfo
*
inhinfo
,
int
numInherits
,
InhInfo
*
inhinfo
,
int
numInherits
,
char
*
oid
,
c
onst
c
har
*
oid
,
int
*
numParents
);
int
*
numParents
);
extern
int
findTableByName
(
TableInfo
*
tbinfo
,
int
numTables
,
char
*
relname
);
extern
int
findTableByName
(
TableInfo
*
tbinfo
,
int
numTables
,
c
onst
c
har
*
relname
);
extern
int
findTableByOid
(
TableInfo
*
tbinfo
,
int
numTables
,
char
*
oid
);
extern
int
findTableByOid
(
TableInfo
*
tbinfo
,
int
numTables
,
c
onst
c
har
*
oid
);
extern
void
flagInhAttrs
(
TableInfo
*
tbinfo
,
int
numTables
,
extern
void
flagInhAttrs
(
TableInfo
*
tbinfo
,
int
numTables
,
InhInfo
*
inhinfo
,
int
numInherits
);
InhInfo
*
inhinfo
,
int
numInherits
);
extern
void
check_conn_and_db
();
extern
void
check_conn_and_db
(
void
);
extern
char
*
dupstr
(
char
*
s
);
extern
char
*
dupstr
(
c
onst
c
har
*
s
);
extern
int
strInArray
(
char
*
pattern
,
char
**
arr
,
int
arr_size
);
extern
int
strInArray
(
c
onst
c
har
*
pattern
,
char
**
arr
,
int
arr_size
);
extern
void
parseArgTypes
(
char
**
argtypes
,
char
*
str
);
extern
void
parseArgTypes
(
char
**
argtypes
,
c
onst
c
har
*
str
);
extern
int
isArchiveName
(
char
*
);
extern
int
isArchiveName
(
c
onst
c
har
*
);
/*
/*
* version specific routines
* version specific routines
...
@@ -186,16 +186,16 @@ extern void dumpOneFunc(FILE* fout, FuncInfo* finfo, int i,
...
@@ -186,16 +186,16 @@ extern void dumpOneFunc(FILE* fout, FuncInfo* finfo, int i,
TypeInfo
*
tinfo
,
int
numTypes
);
TypeInfo
*
tinfo
,
int
numTypes
);
extern
void
dumpTables
(
FILE
*
fout
,
TableInfo
*
tbinfo
,
int
numTables
,
extern
void
dumpTables
(
FILE
*
fout
,
TableInfo
*
tbinfo
,
int
numTables
,
InhInfo
*
inhinfo
,
int
numInherits
,
InhInfo
*
inhinfo
,
int
numInherits
,
TypeInfo
*
tinfo
,
int
numTypes
,
char
*
tablename
);
TypeInfo
*
tinfo
,
int
numTypes
,
c
onst
c
har
*
tablename
);
extern
void
dumpIndices
(
FILE
*
fout
,
IndInfo
*
indinfo
,
int
numIndices
,
extern
void
dumpIndices
(
FILE
*
fout
,
IndInfo
*
indinfo
,
int
numIndices
,
TableInfo
*
tbinfo
,
int
numTables
,
char
*
tablename
);
TableInfo
*
tbinfo
,
int
numTables
,
c
onst
c
har
*
tablename
);
extern
void
dumpClasses
(
TableInfo
*
tbinfo
,
int
numTables
,
FILE
*
fout
,
extern
void
dumpClasses
(
TableInfo
*
tbinfo
,
int
numTables
,
FILE
*
fout
,
char
*
tablename
,
int
oids
);
c
onst
c
har
*
tablename
,
int
oids
);
extern
void
dumpTuples
(
PGresult
*
res
,
FILE
*
fout
,
int
*
attrmap
);
extern
void
dumpTuples
(
PGresult
*
res
,
FILE
*
fout
,
int
*
attrmap
);
extern
void
setMaxOid
(
FILE
*
fout
);
extern
void
setMaxOid
(
FILE
*
fout
);
extern
char
*
checkForQuote
(
char
*
s
);
extern
char
*
checkForQuote
(
c
onst
c
har
*
s
);
extern
int
findLastBuiltinOid
();
extern
int
findLastBuiltinOid
(
void
);
/* largest query string size */
/* largest query string size */
...
...
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