File tree Expand file tree Collapse file tree 3 files changed +45
-41
lines changed Expand file tree Collapse file tree 3 files changed +45
-41
lines changed Original file line number Diff line number Diff line change 83
83
#endif
84
84
85
85
#if defined(hpux )
86
- # define SIGJMP_BUF
86
+ # define JMP_BUF
87
87
# define USE_POSIX_TIME
88
88
# define HAVE_TZSET
89
89
# define NEED_CBRT
129
129
__USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
130
130
be used.
131
131
*/
132
- # define SIGJMP_BUF
132
+ # define JMP_BUF
133
133
# define USE_POSIX_TIME
134
134
# define HAVE_TZSET
135
135
# define NEED_CBRT
141
141
142
142
/* does anybody use this? */
143
143
#if defined(next )
144
- # define SIGJMP_BUF
144
+ # define JMP_BUF
145
145
# define NEED_SIG_JMP
146
146
# define SB_PAD 56
147
147
typedef struct mutex slock_t ;
184
184
#endif
185
185
186
186
#if defined(win32 )
187
- # define SIGJMP_BUF
187
+ # define JMP_BUF
188
188
# define NEED_SIG_JMP
189
189
# define NO_UNISTD_H
190
190
# define USES_WINSOCK
217
217
# define SIGNAL_ARGS int postgres_signal_arg
218
218
#endif
219
219
220
- /* NAMEDATALEN is the max length for system identifiers (e.g. table names,
221
- * attribute names, function names, etc.)
222
- *
223
- * These MUST be set here. DO NOT COMMENT THESE OUT
224
- * Setting these too high will result in excess space usage for system catalogs
225
- * Setting them too low will make the system unusable.
226
- * values between 16 and 64 that are multiples of four are recommended.
227
- *
228
- * NOTE also that databases with different NAMEDATALEN's cannot interoperate!
229
- */
230
- #define NAMEDATALEN 32
231
- /* OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid) */
232
- #define OIDNAMELEN 36
233
-
234
220
/*
235
221
* DEF_PGPORT is the TCP port number on which the Postmaster listens by
236
222
* default. This can be overriden by command options, environment variables,
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1995, Regents of the University of California
8
8
*
9
- * $Id: postgres.h,v 1.2 1996/11/04 06:35:36 scrappy Exp $
9
+ * $Id: postgres.h,v 1.3 1996/12/10 07:03:40 bryanh Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
36
36
#ifndef POSTGRES_H
37
37
#define POSTGRES_H
38
38
39
+ #include "postgres_ext.h"
39
40
#include "config.h"
40
41
#include "c.h"
41
42
#include "utils/elog.h"
@@ -53,8 +54,6 @@ typedef double float8;
53
54
54
55
typedef int4 aclitem ;
55
56
56
-
57
- typedef uint32 Oid ;
58
57
#define InvalidOid 0
59
58
#define OidIsValid (objectId ) ((bool) (objectId != InvalidOid))
60
59
@@ -105,26 +104,6 @@ typedef char16 *Char16;
105
104
typedef int2 int28 [8 ];
106
105
typedef Oid oid8 [8 ];
107
106
108
- /* char16 is distinct from Name.
109
- now, you can truly change the max length of system names
110
- by altering the NAMEDATALEN define below.
111
- don't set the value too high because tuples are still constrained
112
- to be less than 8K
113
- */
114
-
115
- /* NAMEDATALEN is the maximum string length (counting terminating null)
116
- of a Name */
117
- /* defined in Makefile.global */
118
- /* if you change the value of NAMEDATALEN, you may need to change the
119
- alignment of the 'name' type in pg_type.h */
120
- #ifndef NAMEDATALEN
121
- #define NAMEDATALEN 16
122
- #endif /* NAMEDATALEN */
123
- /* OIDNAMELEN should be NAMEDATALEN + sizeof(Oid) */
124
- #ifndef OIDNAMELEN
125
- #define OIDNAMELEN 20
126
- #endif /* OIDNAMELEN */
127
-
128
107
typedef struct nameData {
129
108
char data [NAMEDATALEN ];
130
109
} NameData ;
Original file line number Diff line number Diff line change
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * postgres_ext.h--
4
+ *
5
+ * This file contains declarations of things that are visible
6
+ * external to Postgres. For example, the Oid type is part of a
7
+ * structure that is passed to the front end via libpq, and is
8
+ * accordingly referenced in libpq-fe.h.
9
+ *
10
+ * Declarations which are specific to a particular interface should
11
+ * go in the header file for that interface (such as libpq-fe.h). This
12
+ * file is only for fundamental Postgres declarations.
13
+ *
14
+ * User-written C functions don't count as "external to Postgres."
15
+ * Those function much as local modifications to the backend itself, and
16
+ * use header files that are otherwise internal to Postgres to interface
17
+ * with the backend.
18
+ *
19
+ * $Id: postgres_ext.h,v 1.1 1996/12/10 07:03:43 bryanh Exp $
20
+ *
21
+ *-------------------------------------------------------------------------
22
+ */
23
+
24
+ #ifndef POSTGRES_EXT_H
25
+ #define POSTGRES_EXT_H
26
+
27
+ typedef unsigned int Oid ;
28
+
29
+ /* NAMEDATALEN is the max length for system identifiers (e.g. table names,
30
+ * attribute names, function names, etc.)
31
+ *
32
+ * NOTE that databases with different NAMEDATALEN's cannot interoperate!
33
+ */
34
+ #define NAMEDATALEN 32
35
+
36
+ /* OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid) */
37
+ #define OIDNAMELEN 36
38
+
39
+ #endif
You can’t perform that action at this time.
0 commit comments