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
14 * The following is set using configure.
17 /* Set to 1 if you have <netdb.h> */
20 /* Set to 1 if you have <endian.h> */
23 /* Set to 1 if you have <crypt.h> */
26 /* Set to 1 if you have <termios.h> */
29 /* Set to 1 if you have <float.h> */
32 /* Set to 1 if you have <limits.h> */
35 /* Set to 1 if you have <values.h> */
38 /* Set to 1 if you have <sys/select.h> */
39 #undef HAVE_SYS_SELECT_H
41 /* Set to 1 if you have <readline.h> */
42 #undef HAVE_READLINE_H
44 /* Set to 1 if you have <history.h> */
47 /* Set to 1 if you have <readline/history.h> */
48 #undef HAVE_READLINE_HISTORY_H
50 /* Set to 1 if you have <dld.h> */
53 /* Set to 1 if you have isinf() */
56 /* Set to 1 if you have tzset() */
59 /* Set to 1 if you have int timezone */
60 #undef HAVE_INT_TIMEZONE
62 /* Set to 1 if you have cbrt() */
65 /* Set to 1 if you have inet_aton() */
68 /* Set to 1 if you have fcvt() */
71 /* Set to 1 if you have strerror() */
74 /* Set to 1 if you have rint() */
77 /* Set to 1 if you have memmove() */
80 /* Set to 1 if you have sigsetjmp() */
83 /* Set to 1 if you have kill() */
86 /* Set to 1 if you have vfork() */
89 /* Set to 1 if you have sysconf() */
92 /* Set to 1 if you have getrusage() */
95 /* Set to 1 if you have waitpid() */
98 /* Set to 1 if you have setsid() */
101 /* Set to 1 if you have sigprocmask() */
102 #undef HAVE_SIGPROCMASK
104 /* Set to 1 if you have strdup() */
107 /* Set to 1 if you have libreadline.a */
108 #undef HAVE_LIBREADLINE
110 /* Set to 1 if you have libhistory.a */
111 #undef HAVE_LIBHISTORY
113 /* Set to 1 if you have union semun */
114 #undef HAVE_UNION_SEMUN
116 /* Set to 1 if you want to USE_LOCALE */
119 /* Set to 1 if you want to Disable ASSERT CHECKING */
120 #undef NO_ASSERT_CHECKING
123 * Code below this point should not require changes
129 * The following is used as the arg list for signal handlers. Any ports
130 * that take something other than an int argument should change this in
131 * the port specific makefile. Note that variable names are required
132 * because it is used in both the prototypes as well as the definitions.
133 * Note also the long name. We expect that this won't collide with
134 * other names causing compiler warnings.
138 # define SIGNAL_ARGS int postgres_signal_arg
142 * DEF_PGPORT is the TCP port number on which the Postmaster listens by
143 * default. This can be overriden by command options, environment variables,
144 * and the postconfig hook. (set by build script)
150 * If you do not plan to use Host based authentication,
151 * comment out the following line (set by build script)
156 * On architectures for which we have not implemented spinlocks (or
157 * cannot do so), we use System V semaphores. We also use them for
158 * long locks. For some reason union semun is never defined in the
159 * System V header files so we must do it ourselves.
162 /* Debug and various "defines" that should be documented */
164 /* found in function aclparse() in src/backend/utils/adt/acl.c */
165 /* #define ACLDEBUG */
167 /* found in src/backend/utils/adt/arrayfuncs.c
168 code seems broken without it, Bruce Momjian */
169 /* #define LOARRAY */
171 /* This is the time, in seconds, at which a given backend server
172 * will wait on a lock before deciding to abort the transaction
173 * (this is what we do in lieu of deadlock detection).
175 * Low numbers are not recommended as they will tend to cause
176 * false aborts if many transactions are long-lived.
178 #define DEADLOCK_TIMEOUT 60
181 * This flag enables the use of idexes in plans generated for function
182 * executions which normally are always executed with sequential scans.
184 #define INDEXSCAN_PATCH
186 /* #define DATEDEBUG */
189 * Define this if you want to use date constants with a short year
192 /* #define USE_SHORT_YEAR */
195 * defining unsafe floats's will make float4 and float8
196 * ops faster at the cost of safety, of course!
198 /* #define UNSAFE_FLOATS */
201 * There is a bug in the function executor. The backend crashes while trying to
202 * execute an sql function containing an utility command (create, notify, ...).
203 * The bug is part in the planner, which returns a number of plans different
204 * than the number of commands if there are utility commands in the query, and
205 * in part in the function executor which assumes that all commands are normal
206 * query commands and causes a SIGSEGV trying to execute commands without plan.
208 #define FUNC_UTIL_PATCH
211 * Define this if you want to retrieve arrays attributes as Tcl lists instead
212 * of postgres C-like arrays, for example {{"a1" "a2"} {"b1" "b2"}} instead
213 * of {{"a1","a2"},{"b1","b2"}}.
218 * The comparison routines for text and char data type give incorrect results
219 * if the input data contains characters greater than 127. As these routines
220 * perform the comparison using signed char variables all character codes
221 * greater than 127 are interpreted as less than 0. These codes are used to
222 * encode the iso8859 char sets. Define this flag to correct the problem.
224 #define UNSIGNED_CHAR_TEXT
227 * The following flag allows limiting the number of rows returned by a query.
228 * You will need the loadable module utils.c to use this feature.
233 * The following flag allows copying tables from files with number of columns
234 * different than the number of attributes setting missing attributes to NULL
235 * and ignoring extra columns. This also avoids the shift of the attributes
236 * of the rest of the file if one line has a wrong column count.
241 * User locks are handled totally on the application side as long term
242 * cooperative locks which extend beyond the normal transaction boundaries.
243 * Their purpose is to indicate to an application that someone is `working'
244 * on an item. Define this flag to enable user locks. You will need the
245 * loadable module user-locks.c to use this feature.
250 /* #define IPORTAL_DEBUG */
251 /* #define HEAPDEBUGALL */
252 /* #define ISTRATDEBUG */
253 /* #define FASTBUILD_DEBUG */
256 /* #define PURGEDEBUG */
257 /* #define DEBUG_RECIPE */
258 /* #define ASYNC_DEBUG */
259 /* #define COPY_DEBUG */
260 /* #define VACUUM_DEBUG */
261 /* #define NBTINSERT_PATCH_DEBUG */
264 /* The following don't have any apparent purpose, but are in the
265 * code. someday, will take them out altogether, but for now,
268 /* #define OMIT_PARTIAL_INDEX */
269 /* #define NO_BUFFERISVALID */
270 /* #define NO_SECURITY */
272 /* #define OLD_REWRITE */
275 /* Genetic Query Optimization (GEQO):
277 * The GEQO module in PostgreSQL is intended for the solution of the
278 * query optimization problem by means of a Genetic Algorithm (GA).
279 * It allows the handling of large JOIN queries through non-exhaustive
281 * For further information see README.GEQO <utesch@aut.tu-freiberg.de>.
283 #define GEQO /* backend/optimizer/path/allpaths.c */
286 * Define this if you want psql to _always_ ask for a username and a password
287 * for password authentication.
289 /* #define PSQL_ALWAYS_GET_PASSWORDS */
292 * Use btree bulkload code:
293 * this code is moderately slow (~10% slower) compared to the regular
294 * btree (insertion) build code on sorted or well-clustered data. on
295 * random data, however, the insertion build code is unusable -- the
296 * difference on a 60MB heap is a factor of 15 because the random
297 * probes into the btree thrash the buffer pool.
299 * Great thanks to Paul M. Aoki (aoki@CS.Berkeley.EDU)
301 #define FASTBUILD /* access/nbtree/nbtsort.c */
304 * BTREE_VERSION_1: we must guarantee that all tuples in A LEVEL
305 * are unique, not in ALL INDEX. So, we can use bti_itup->t_tid
306 * as unique identifier for a given index tuple (logical position
307 * within a level) and take off bti_oid & bti_dummy (8 bytes total)
310 #define BTREE_VERSION_1
312 #endif /* CONFIG_H */