]> granicus.if.org Git - postgresql/blob - src/include/config.h.in
From: Dan McGuirk <mcguirk@indirect.com>
[postgresql] / src / include / config.h.in
1
2
3 /* the purpose of this file is to reduce the use of #ifdef's through
4  * the code base by those porting the software, and to facilitate the
5  * eventual use of autoconf to build the server 
6  */
7
8 #ifndef CONFIG_H
9 #define CONFIG_H
10
11 #define BLCKSZ  8192
12
13 /* 
14  * The following is set using configure.  
15  */
16
17 /* Set to 1 if you have <termios.h> */
18 #undef HAVE_TERMIOS_H
19
20 /* Set to 1 if you have <limits.h> */
21 #undef HAVE_LIMITS_H
22
23 /* Set to 1 if  you have <values.h> */
24 #undef HAVE_VALUES_H
25
26 /* Set to 1 if  you have <sys/select.h> */
27 #undef HAVE_SYS_SELECT_H
28
29 /* Set to 1 if you have <readline.h> */
30 #undef HAVE_READLINE_H
31
32 /* Set to 1 if you have <history.h> */
33 #undef HAVE_HISTORY
34
35 /* Set to 1 if you have <dld.h> */
36 #undef HAVE_DLD_H
37
38 /* Set to 1 if you have isinf() */
39 #undef HAVE_ISINF
40
41 /* Set to 1 if you have tzset() */
42 #undef HAVE_TZSET
43
44 /* Set to 1 if you have int timezone */
45 #undef HAVE_INT_TIMEZONE
46
47 /* Set to 1 if you have cbrt() */
48 #undef HAVE_CBRT
49
50 /* Set to 1 if you have cbrt() */
51 #undef HAVE_INET_ATON
52
53 /* Set to 1 if you have rint() */
54 #undef HAVE_RINT 
55
56 /* Set to 1 if you have memmove() */
57 #undef HAVE_MEMMOVE
58
59 /* Set to 1 if you have sigsetjmp() */
60 #undef HAVE_SIGSETJMP
61
62 /* Set to 1 if you have kill() */
63 #undef HAVE_KILL
64
65 /* Set to 1 if you have vfork() */
66 #undef HAVE_VFORK
67
68 /* Set to 1 if you have sysconf() */
69 #undef HAVE_SYSCONF
70
71 /* Set to 1 if you have getrusage() */
72 #undef HAVE_GETRUSAGE
73
74 /* Set to 1 if you have waitpid() */
75 #undef HAVE_WAITPID
76
77 /* Set to 1 if you have setsid() */
78 #undef HAVE_SETSID
79
80 /* Set to 1 if you have sigprocmask() */
81 #undef HAVE_SIGPROCMASK
82
83 /* Set to 1 if you have strdup() */
84 #undef HAVE_STRDUP
85
86 /* Set to 1 if you have libreadline.a */
87 #undef HAVE_LIBREADLINE
88
89 /* Set to 1 if you have libhistory.a */
90 #undef HAVE_LIBHISTORY
91
92 /* Set to 1 if you have union semun */
93 #undef HAVE_UNION_SEMUN
94
95 /*
96  * Code below this point should not require changes
97  */
98
99 #include "os.h"
100
101 /* This patch changes the behavior of aclcheck for groups. Currently an user
102  * can access a table only if he has the required permission for ALL the groups
103  * defined for that table. With my patch he can access a table if he has the
104  * permission for ONE of the groups, which seems to me a more useful thing.
105  * 
106  * Used in: src/backend/tcop/aclchk.c
107  * Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
108  */
109 #define ACLGROUP_PATCH
110
111
112 /*
113  * The following is used as the arg list for signal handlers.  Any ports
114  * that take something other than an int argument should change this in
115  * the port specific makefile.  Note that variable names are required
116  * because it is used in both the prototypes as well as the definitions.
117  * Note also the long name.  We expect that this won't collide with
118  * other names causing compiler warnings.
119  */ 
120
121 #ifndef       SIGNAL_ARGS
122 #  define SIGNAL_ARGS int postgres_signal_arg
123 #endif
124
125 /* 
126  * DEF_PGPORT is the TCP port number on which the Postmaster listens by
127  * default.  This can be overriden by command options, environment variables,
128  * and the postconfig hook.
129  */ 
130
131 #define DEF_PGPORT "5432"
132
133 /*
134  * If you do not plan to use Host based authentication,
135  * comment out the following line
136  */
137 #define HBA
138
139 /*
140  * On architectures for which we have not implemented spinlocks (or
141  * cannot do so), we use System V semaphores.  We also use them for
142  * long locks.  For some reason union semun is never defined in the
143  * System V header files so we must do it ourselves.
144  */
145
146 /*  Debug and various "defines" that should be documented */
147
148 /* found in function aclparse() in src/backend/utils/adt/acl.c */
149 /* #define ACLDEBUG */
150
151 /* found in src/backend/utils/adt/arrayfuncs.c
152    code seems broken without it, Bruce Momjian */
153 /* #define LOARRAY */
154
155 /* This is the time, in seconds, at which a given backend server
156  * will wait on a lock before deciding to abort the transaction
157  * (this is what we do in lieu of deadlock detection).
158  *
159  * Low numbers are not recommended as they will tend to cause
160  * false aborts if many transactions are long-lived.
161  */
162 #define DEADLOCK_TIMEOUT 60
163
164 /*
165  * This flag enables the use of idexes in plans generated for function
166  * executions which normally are always executed with sequential scans.
167  */
168 #define INDEXSCAN_PATCH 
169
170 /* #define DATEDEBUG */
171
172 /*
173  * Define this if you want to use date constants with a short year
174  * like '01/05/96'.
175  */
176 /* #define USE_SHORT_YEAR */
177
178 /*
179  * defining unsafe floats's will make float4 and float8
180  * ops faster at the cost of safety, of course!        
181  */
182 /* #define UNSAFE_FLOATS */
183
184 /*
185  * There is a bug in the function executor. The backend crashes while trying to
186  * execute an sql function containing an utility command (create, notify, ...).
187  * The bug is part in the planner, which returns a number of plans different
188  * than the number of commands if there are utility commands in the query, and
189  * in part in the function executor which assumes that all commands are normal
190  * query commands and causes a SIGSEGV trying to execute commands without plan.
191  */
192 #define FUNC_UTIL_PATCH
193
194 /*
195  * Define this if you want to retrieve arrays attributes as Tcl lists instead
196  * of postgres C-like arrays, for example {{"a1" "a2"} {"b1" "b2"}} instead 
197  * of {{"a1","a2"},{"b1","b2"}}.
198  */
199 #define TCL_ARRAYS
200
201 /*
202  * The comparison routines for text and char data type give incorrect results
203  * if the input data contains characters greater than 127.  As these routines
204  * perform the comparison using signed char variables all character codes
205  * greater than 127 are interpreted as less than 0.  These codes are used to
206  * encode the iso8859 char sets.  Define this flag to correct the problem.
207  */
208 #define UNSIGNED_CHAR_TEXT
209
210 /*
211  * The following flag allows limiting the number of rows returned by a query.
212  * You will need the loadable module utils.c to use this feature.
213  */
214 #define QUERY_LIMIT
215
216 /*
217  * The following flag allows copying tables from files with number of columns
218  * different than the number of attributes setting missing attributes to NULL
219  * and ignoring extra columns.  This also avoids the shift of the attributes
220  * of the rest of the file if one line has a wrong column count.
221  */
222 #define COPY_PATCH
223
224 /*
225  * User locks are handled totally on the application side as long term
226  * cooperative locks which extend beyond the normal transaction boundaries.
227  * Their purpose is to indicate to an application that someone is `working'
228  * on an item.  Define this flag to enable user locks.  You will need the
229  * loadable module user-locks.c to use this feature.
230  */
231 #define USER_LOCKS
232
233 /* Debug #defines */
234 /* #define IPORTAL_DEBUG  */
235 /* #define HEAPDEBUGALL  */
236 /* #define ISTRATDEBUG  */
237 /* #define FASTBUILD_DEBUG */
238 #define RTDEBUG 
239 #define GISTDEBUG 
240 /* #define PURGEDEBUG */
241 /* #define DEBUG_RECIPE */
242 /* #define ASYNC_DEBUG */
243 /* #define COPY_DEBUG */
244 /* #define VACUUM_DEBUG */
245 /* #define NBTINSERT_PATCH_DEBUG */
246
247
248 /* The following don't have any apparent purpose, but are in the
249  * code.  someday, will take them out altogether, but for now, 
250  * document them here
251  */
252 /* #define OMIT_PARTIAL_INDEX */
253 /* #define NO_BUFFERISVALID   */
254 /* #define NO_SECURITY        */
255 /* #define TIOGA              */
256 /* #define OLD_REWRITE        */
257 /* #define NOTYET             */
258
259 /* Genetic Query Optimization (GEQO):
260  * 
261  * The GEQO module in PostgreSQL is intended for the solution of the
262  * query optimization problem by means of a Genetic Algorithm (GA).
263  * It allows the handling of large JOIN queries through non-exhaustive
264  * search.
265  * For further information see README.GEQO <utesch@aut.tu-freiberg.de>.
266  */
267 /*#define GEQO */ /* backend/optimizer/path/allpaths.c */
268
269
270
271
272 /* Undocumented "features"? */
273 #define FASTBUILD /* access/nbtree/nbtsort.c */
274
275 #endif /* CONFIG_H */