16
16
#include "libpq-fe.h"
17
17
18
18
/* Allocate for null byte */
19
- #define NAMEDATASIZE (NAMEDATALEN + 1)
20
-
21
19
#define USER_NAME_SIZE 128
22
20
23
21
#define MAX_STRING 1024
@@ -73,15 +71,13 @@ extern int pgunlink(const char *path);
73
71
extern void copydir (char * fromdir , char * todir , bool recurse );
74
72
extern bool rmtree (const char * path , bool rmtopdir );
75
73
76
- extern char pathSeparator ;
77
-
78
74
/*
79
75
* Each relation is represented by a relinfo structure.
80
76
*/
81
77
typedef struct
82
78
{
83
- char nspname [NAMEDATASIZE ]; /* namespace name */
84
- char relname [NAMEDATASIZE ]; /* relation name */
79
+ char nspname [NAMEDATALEN ]; /* namespace name */
80
+ char relname [NAMEDATALEN ]; /* relation name */
85
81
Oid reloid ; /* relation oid */
86
82
Oid relfilenode ; /* relation relfile node */
87
83
Oid toastrelid ; /* oid of the toast relation */
@@ -103,10 +99,10 @@ typedef struct
103
99
Oid new ; /* Relfilenode of the new relation */
104
100
char old_file [MAXPGPATH ];
105
101
char new_file [MAXPGPATH ];
106
- char old_nspname [NAMEDATASIZE ]; /* old name of the namespace */
107
- char old_relname [NAMEDATASIZE ]; /* old name of the relation */
108
- char new_nspname [NAMEDATASIZE ]; /* new name of the namespace */
109
- char new_relname [NAMEDATASIZE ]; /* new name of the relation */
102
+ char old_nspname [NAMEDATALEN ]; /* old name of the namespace */
103
+ char old_relname [NAMEDATALEN ]; /* old name of the relation */
104
+ char new_nspname [NAMEDATALEN ]; /* new name of the namespace */
105
+ char new_relname [NAMEDATALEN ]; /* new name of the relation */
110
106
} FileNameMap ;
111
107
112
108
/*
@@ -115,7 +111,7 @@ typedef struct
115
111
typedef struct
116
112
{
117
113
Oid db_oid ; /* oid of the database */
118
- char db_name [NAMEDATASIZE ]; /* database name */
114
+ char db_name [NAMEDATALEN ]; /* database name */
119
115
char db_tblspace [MAXPGPATH ]; /* database default tablespace path */
120
116
RelInfoArr rel_arr ; /* array of all user relinfos */
121
117
} DbInfo ;
0 commit comments