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