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 <termios.h> */
20 /* Set to 1 if you have <limits.h> */
23 /* Set to 1 if you have <values.h> */
26 /* Set to 1 if you have <sys/select.h> */
27 #undef HAVE_SYS_SELECT_H
29 /* Set to 1 if you have <readline.h> */
30 #undef HAVE_READLINE_H
32 /* Set to 1 if you have <history.h> */
35 /* Set to 1 if you have <dld.h> */
38 /* Set to 1 if you have isinf() */
41 /* Set to 1 if you have tzset() */
44 /* Set to 1 if you have int timezone */
45 #undef HAVE_INT_TIMEZONE
47 /* Set to 1 if you have cbrt() */
50 /* Set to 1 if you have inet_aton() */
53 /* Set to 1 if you have strerror() */
56 /* Set to 1 if you have rint() */
59 /* Set to 1 if you have memmove() */
62 /* Set to 1 if you have sigsetjmp() */
65 /* Set to 1 if you have kill() */
68 /* Set to 1 if you have vfork() */
71 /* Set to 1 if you have sysconf() */
74 /* Set to 1 if you have getrusage() */
77 /* Set to 1 if you have waitpid() */
80 /* Set to 1 if you have setsid() */
83 /* Set to 1 if you have sigprocmask() */
84 #undef HAVE_SIGPROCMASK
86 /* Set to 1 if you have strdup() */
89 /* Set to 1 if you have libreadline.a */
90 #undef HAVE_LIBREADLINE
92 /* Set to 1 if you have libhistory.a */
93 #undef HAVE_LIBHISTORY
95 /* Set to 1 if you have union semun */
96 #undef HAVE_UNION_SEMUN
99 * Code below this point should not require changes
104 /* This patch changes the behavior of aclcheck for groups. Currently an user
105 * can access a table only if he has the required permission for ALL the groups
106 * defined for that table. With my patch he can access a table if he has the
107 * permission for ONE of the groups, which seems to me a more useful thing.
109 * Used in: src/backend/tcop/aclchk.c
110 * Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
112 #define ACLGROUP_PATCH
116 * The following is used as the arg list for signal handlers. Any ports
117 * that take something other than an int argument should change this in
118 * the port specific makefile. Note that variable names are required
119 * because it is used in both the prototypes as well as the definitions.
120 * Note also the long name. We expect that this won't collide with
121 * other names causing compiler warnings.
125 # define SIGNAL_ARGS int postgres_signal_arg
129 * DEF_PGPORT is the TCP port number on which the Postmaster listens by
130 * default. This can be overriden by command options, environment variables,
131 * and the postconfig hook.
134 #define DEF_PGPORT "5432"
137 * If you do not plan to use Host based authentication,
138 * comment out the following line
143 * On architectures for which we have not implemented spinlocks (or
144 * cannot do so), we use System V semaphores. We also use them for
145 * long locks. For some reason union semun is never defined in the
146 * System V header files so we must do it ourselves.
149 /* Debug and various "defines" that should be documented */
151 /* found in function aclparse() in src/backend/utils/adt/acl.c */
152 /* #define ACLDEBUG */
154 /* found in src/backend/utils/adt/arrayfuncs.c
155 code seems broken without it, Bruce Momjian */
156 /* #define LOARRAY */
158 /* This is the time, in seconds, at which a given backend server
159 * will wait on a lock before deciding to abort the transaction
160 * (this is what we do in lieu of deadlock detection).
162 * Low numbers are not recommended as they will tend to cause
163 * false aborts if many transactions are long-lived.
165 #define DEADLOCK_TIMEOUT 60
168 * This flag enables the use of idexes in plans generated for function
169 * executions which normally are always executed with sequential scans.
171 #define INDEXSCAN_PATCH
173 /* #define DATEDEBUG */
176 * Define this if you want to use date constants with a short year
179 /* #define USE_SHORT_YEAR */
182 * defining unsafe floats's will make float4 and float8
183 * ops faster at the cost of safety, of course!
185 /* #define UNSAFE_FLOATS */
188 * There is a bug in the function executor. The backend crashes while trying to
189 * execute an sql function containing an utility command (create, notify, ...).
190 * The bug is part in the planner, which returns a number of plans different
191 * than the number of commands if there are utility commands in the query, and
192 * in part in the function executor which assumes that all commands are normal
193 * query commands and causes a SIGSEGV trying to execute commands without plan.
195 #define FUNC_UTIL_PATCH
198 * Define this if you want to retrieve arrays attributes as Tcl lists instead
199 * of postgres C-like arrays, for example {{"a1" "a2"} {"b1" "b2"}} instead
200 * of {{"a1","a2"},{"b1","b2"}}.
205 * The comparison routines for text and char data type give incorrect results
206 * if the input data contains characters greater than 127. As these routines
207 * perform the comparison using signed char variables all character codes
208 * greater than 127 are interpreted as less than 0. These codes are used to
209 * encode the iso8859 char sets. Define this flag to correct the problem.
211 #define UNSIGNED_CHAR_TEXT
214 * The following flag allows limiting the number of rows returned by a query.
215 * You will need the loadable module utils.c to use this feature.
220 * The following flag allows copying tables from files with number of columns
221 * different than the number of attributes setting missing attributes to NULL
222 * and ignoring extra columns. This also avoids the shift of the attributes
223 * of the rest of the file if one line has a wrong column count.
228 * User locks are handled totally on the application side as long term
229 * cooperative locks which extend beyond the normal transaction boundaries.
230 * Their purpose is to indicate to an application that someone is `working'
231 * on an item. Define this flag to enable user locks. You will need the
232 * loadable module user-locks.c to use this feature.
237 /* #define IPORTAL_DEBUG */
238 /* #define HEAPDEBUGALL */
239 /* #define ISTRATDEBUG */
240 /* #define FASTBUILD_DEBUG */
243 /* #define PURGEDEBUG */
244 /* #define DEBUG_RECIPE */
245 /* #define ASYNC_DEBUG */
246 /* #define COPY_DEBUG */
247 /* #define VACUUM_DEBUG */
248 /* #define NBTINSERT_PATCH_DEBUG */
251 /* The following don't have any apparent purpose, but are in the
252 * code. someday, will take them out altogether, but for now,
255 /* #define OMIT_PARTIAL_INDEX */
256 /* #define NO_BUFFERISVALID */
257 /* #define NO_SECURITY */
259 /* #define OLD_REWRITE */
262 /* Genetic Query Optimization (GEQO):
264 * The GEQO module in PostgreSQL is intended for the solution of the
265 * query optimization problem by means of a Genetic Algorithm (GA).
266 * It allows the handling of large JOIN queries through non-exhaustive
268 * For further information see README.GEQO <utesch@aut.tu-freiberg.de>.
270 /*#define GEQO */ /* backend/optimizer/path/allpaths.c */
273 * Define this if you want psql to _always_ ask for a username and a password
274 * for password authentication.
276 /* #define PSQL_ALWAYS_GET_PASSWORDS */
278 /* Undocumented "features"? */
279 #define FASTBUILD /* access/nbtree/nbtsort.c */
281 #endif /* CONFIG_H */