postgresql/src/include/config.h.in

554 lines
15 KiB
C
Raw Normal View History

/*
* PostgreSQL configuration-settings file.
*
* config.h.in is processed by configure to produce config.h.
*
* If you want to modify any of the tweakable settings in the first part
* of this file, you can do it in config.h.in before running configure,
* or in config.h afterwards. Of course, if you edit config.h, then your
* changes will be overwritten the next time you run configure.
*
* $Id: config.h.in,v 1.120 2000/06/19 16:58:37 petere Exp $
*/
#ifndef CONFIG_H
#define CONFIG_H
/*
* Default runtime limit on number of backend server processes per postmaster;
* this is just the default setting for the postmaster's -N switch.
* (Actual value is now set by configure script.)
*/
#undef DEF_MAXBACKENDS
/*
* Hard limit on number of backend server processes per postmaster.
* Increasing this costs about 32 bytes per process slot as of v 6.5.
*/
#define MAXBACKENDS (DEF_MAXBACKENDS > 1024 ? DEF_MAXBACKENDS : 1024)
/*
* Default number of buffers in shared buffer pool (each of size BLCKSZ).
* This is just the default setting for the postmaster's -B switch.
* Perhaps it ought to be configurable from a configure switch.
* NOTE: default setting corresponds to the minimum number of buffers
* that postmaster.c will allow for the default MaxBackends value.
*/
#define DEF_NBUFFERS (DEF_MAXBACKENDS > 8 ? DEF_MAXBACKENDS * 2 : 16)
/*
* Size of a disk block --- currently, this limits the size of a tuple.
* You can set it bigger if you need bigger tuples.
*/
1999-07-09 18:56:44 +02:00
/* currently must be <= 32k bjm */
#define BLCKSZ 8192
/*
* RELSEG_SIZE is the maximum number of blocks allowed in one disk file.
* Thus, the maximum size of a single file is RELSEG_SIZE * BLCKSZ;
* relations bigger than that are divided into multiple files.
*
* CAUTION: RELSEG_SIZE * BLCKSZ must be less than your OS' limit on file
* size. This is typically 2Gb or 4Gb in a 32-bit operating system. By
* default, we make the limit 1Gb to avoid any possible integer-overflow
* problems within the OS. A limit smaller than necessary only means we
* divide a large relation into more chunks than necessary, so it seems
* best to err in the direction of a small limit. (Besides, a power-of-2
* value saves a few cycles in md.c.)
*
* CAUTION: you had best do an initdb if you change either BLCKSZ or
* RELSEG_SIZE.
*/
#define RELSEG_SIZE (0x40000000 / BLCKSZ)
2000-01-10 06:20:26 +01:00
/*
2000-01-10 19:18:30 +01:00
* Maximum number of columns in an index and maximum number of arguments
* to a function. They must be the same value.
2000-01-10 19:18:30 +01:00
*
* The minimum value is 9 (btree index creation has a 9-argument function).
*
2000-01-10 19:18:30 +01:00
* There is no maximum value, though if you want to pass more than 32
* arguments to a function, you will have to modify
* pgsql/src/backend/utils/fmgr/fmgr.c and add additional entries
* to the 'case' statement for the additional arguments.
2000-01-10 06:20:26 +01:00
*/
#define INDEX_MAX_KEYS 16
#define FUNC_MAX_ARGS INDEX_MAX_KEYS
2000-01-10 06:20:26 +01:00
1999-07-18 20:03:50 +02:00
/*
* Enables debugging print statements in the date/time support routines.
* Particularly useful for porting to a new platform/OS combination.
*/
/* #define DATEDEBUG */
/*
* defining unsafe floats's will make float4 and float8
* ops faster at the cost of safety, of course!
*/
/* #define UNSAFE_FLOATS */
/*
* Define this to make libpgtcl's "pg_result -assign" command process C-style
* backslash sequences in returned tuple data and convert Postgres array
* attributes into Tcl lists. CAUTION: this conversion is *wrong* unless
* you install the routines in contrib/string/string_io to make the backend
* produce C-style backslash sequences in the first place.
*/
/* #define TCL_ARRAYS */
/*
* User locks are handled totally on the application side as long term
* cooperative locks which extend beyond the normal transaction boundaries.
* Their purpose is to indicate to an application that someone is `working'
* on an item. Define this flag to enable user locks. You will need the
* loadable module user-locks.c to use this feature.
*/
#define USER_LOCKS
/*
* Define this if you want psql to _always_ ask for a username and a password
* for password authentication.
*/
/* #define PSQL_ALWAYS_GET_PASSWORDS */
/*
* Define this if you want to allow the lo_import and lo_export SQL functions
* to be executed by ordinary users. By default these functions are only
* available to the Postgres superuser. CAUTION: these functions are
* SECURITY HOLES since they can read and write any file that the Postgres
* backend has permission to access. If you turn this on, don't say we
* didn't warn you.
*/
/* #define ALLOW_DANGEROUS_LO_FUNCTIONS */
/*
* Use btree bulkload code:
* this code is moderately slow (~10% slower) compared to the regular
* btree (insertion) build code on sorted or well-clustered data. on
* random data, however, the insertion build code is unusable -- the
* difference on a 60MB heap is a factor of 15 because the random
* probes into the btree thrash the buffer pool.
*
* Great thanks to Paul M. Aoki (aoki@CS.Berkeley.EDU)
*/
#define FASTBUILD /* access/nbtree/nbtsort.c */
/*
* TBL_FREE_CMD_MEMORY: free memory allocated for a user query inside
1999-07-18 20:03:50 +02:00
* transaction block after this query is done.
*/
#define TBL_FREE_CMD_MEMORY
#undef ENABLE_SYSLOG
1999-07-18 20:03:50 +02:00
/* Debug #defines */
/* #define IPORTAL_DEBUG */
/* #define HEAPDEBUGALL */
/* #define ISTRATDEBUG */
/* #define FASTBUILD_DEBUG */
/* #define ACLDEBUG */
/* #define RTDEBUG */
/* #define GISTDEBUG */
/* #define OMIT_PARTIAL_INDEX */
/* #define NO_BUFFERISVALID */
/* #define NO_SECURITY */
/* #define OLD_REWRITE */
/* #define LOCK_DEBUG */
1999-07-18 20:03:50 +02:00
/*
* MAXPGPATH: standard size of a pathname buffer in Postgres (hence,
* maximum usable pathname length is one less).
*
* We'd use a standard system header symbol for this, if there weren't
* so many to choose from: MAXPATHLEN, _POSIX_PATH_MAX, MAX_PATH, PATH_MAX
* are all defined by different "standards", and often have different
* values on the same platform! So we just punt and use a reasonably
* generous setting here.
*/
#define MAXPGPATH 1024
/*
* DEFAULT_MAX_EXPR_DEPTH: default value of max_expr_depth SET variable.
*/
#define DEFAULT_MAX_EXPR_DEPTH 10000
1999-07-18 20:03:50 +02:00
/*
*------------------------------------------------------------------------
* Everything past here is set by the configure script.
1999-07-18 20:03:50 +02:00
*------------------------------------------------------------------------
*/
/* Set to 1 if you want to USE_LOCALE */
#undef USE_LOCALE
/* Set to 1 if you want CYR_RECODE (cyrillic recode) */
#undef CYR_RECODE
/* Set to 1 if you want to use multibyte characters */
#undef MULTIBYTE
/* Set to 1 if you want to Enable ASSERT CHECKING */
#undef USE_ASSERT_CHECKING
/*
* DEF_PGPORT is the TCP port number on which the Postmaster listens by
* default. This can be overriden by command options, environment variables,
* and the postconfig hook. (now set by configure script)
*/
#undef DEF_PGPORT
/* ... and once more as a string constant instead */
#undef DEF_PGPORT_STR
/* Define const as empty if your compiler doesn't grok const. */
#undef const
/* Define as your compiler's spelling of "inline", or empty if no inline. */
#undef inline
/* Define signed as empty if your compiler doesn't grok "signed char" etc */
#undef signed
/* Define volatile as empty if your compiler doesn't grok volatile. */
#undef volatile
/* Define if your cpp understands the ANSI stringizing operators in macros */
#undef HAVE_STRINGIZE
1998-01-23 20:13:22 +01:00
/* Set to 1 if you have <arpa/inet.h> */
#undef HAVE_ARPA_INET_H
/* Set to 1 if you have <crypt.h> */
#undef HAVE_CRYPT_H
1999-07-18 16:48:30 +02:00
/* Set to 1 if you have <dld.h> */
#undef HAVE_DLD_H
/* Set to 1 if you have <endian.h> */
#undef HAVE_ENDIAN_H
/* Set to 1 if you have <float.h> */
#undef HAVE_FLOAT_H
1999-07-18 16:48:30 +02:00
/* Set to 1 if you have <fp_class.h> */
#undef HAVE_FP_CLASS_H
/* Set to 1 if you have <getopt.h> */
#undef HAVE_GETOPT_H
1999-07-18 16:48:30 +02:00
/* Set to 1 if you have <history.h> */
#undef HAVE_HISTORY_H
/* Set to 1 if you have <ieeefp.h> */
#undef HAVE_IEEEFP_H
/* Set to 1 if you have <limits.h> */
#undef HAVE_LIMITS_H
1999-07-18 16:48:30 +02:00
/* Set to 1 if you have <netdb.h> */
#undef HAVE_NETDB_H
/* Set to 1 if you have <netinet/in.h> */
#undef HAVE_NETINET_IN_H
/* Set to 1 if you have <readline.h> */
#undef HAVE_READLINE_H
/* Set to 1 if you have <readline/history.h> */
#undef HAVE_READLINE_HISTORY_H
/* Set to 1 if you have <readline/readline.h> */
#undef HAVE_READLINE_READLINE_H
1999-07-18 16:48:30 +02:00
/* Set to 1 if you have <sys/select.h> */
#undef HAVE_SYS_SELECT_H
1999-07-18 16:48:30 +02:00
/* Set to 1 if you have <termios.h> */
#undef HAVE_TERMIOS_H
/* Set to 1 if you have <values.h> */
#undef HAVE_VALUES_H
/* Set to 1 if you have <sys/exec.h> */
#undef HAVE_SYS_EXEC_H
/* Set to 1 if you have <sys/pstat.h> */
#undef HAVE_SYS_PSTAT_H
/* Set to 1 if you have <machine/vmparam.h> */
#undef HAVE_MACHINE_VMPARAM_H
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define if you have the setproctitle function. */
#undef HAVE_SETPROCTITLE
/* Define if you have the pstat function. */
#undef HAVE_PSTAT
/* Define if the PS_STRINGS thing exists. */
#undef HAVE_PS_STRINGS
/* Define if you have the stricmp function. */
#undef HAVE_STRICMP
1999-07-18 16:48:30 +02:00
/* Set to 1 if you have libreadline and it includes history functions */
#undef HAVE_HISTORY_IN_READLINE
1999-07-18 16:48:30 +02:00
/*
* Block of parameters for the ODBC code.
*/
/* Set to 1 if you have <pwd.h> */
#undef HAVE_PWD_H
/* Define if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
/* Define if you have the dl library (-ldl). */
#undef HAVE_LIBDL
/*
* End parameters for ODBC code.
*/
/* Set to 1 if you gettimeofday(a,b) vs gettimeofday(a) */
#undef GETTIMEOFDAY_1ARG
#ifdef GETTIMEOFDAY_1ARG
# define gettimeofday(a,b) gettimeofday(a)
#endif
/* Set to 1 if you have snprintf() in the C library */
#undef HAVE_SNPRINTF
/* Set to 1 if your standard system headers declare snprintf() */
#undef HAVE_SNPRINTF_DECL
1999-07-18 22:43:13 +02:00
/* Set to 1 if you have vsnprintf() in the C library */
#undef HAVE_VSNPRINTF
/* Set to 1 if your standard system headers declare vsnprintf() */
#undef HAVE_VSNPRINTF_DECL
/* Set to 1 if you have strerror() */
#undef HAVE_STRERROR
1999-07-18 22:43:13 +02:00
/*
* Set to 1 if you have isinf().
* These are all related to port/isinf.c
1999-07-18 22:43:13 +02:00
*/
#undef HAVE_FPCLASS
#undef HAVE_FP_CLASS
#undef HAVE_FP_CLASS_H
#undef HAVE_FP_CLASS_D
#undef HAVE_CLASS
#undef HAVE_ISINF
#ifndef HAVE_ISINF
int isinf(double x);
#endif
/* Set to 1 if you have gethostname() */
#undef HAVE_GETHOSTNAME
1997-12-20 05:26:27 +01:00
#ifndef HAVE_GETHOSTNAME
int gethostname(char *name, int namelen);
#endif
/* Set to 1 if struct tm has a tm_zone member */
#undef HAVE_TM_ZONE
/* Set to 1 if you have int timezone.
* NOTE: if both tm_zone and a global timezone variable exist,
* using the tm_zone field should probably be preferred,
* since global variables are inherently not thread-safe.
*/
#undef HAVE_INT_TIMEZONE
/* Set to 1 if you have cbrt() */
#undef HAVE_CBRT
/* Set to 1 if you have inet_aton() */
#undef HAVE_INET_ATON
#ifndef HAVE_INET_ATON
1998-01-23 20:13:22 +01:00
# ifdef HAVE_ARPA_INET_H
# ifdef HAVE_NETINET_IN_H
# include <sys/types.h>
# include <netinet/in.h>
# endif
1998-01-23 20:13:22 +01:00
# include <arpa/inet.h>
# endif
extern int inet_aton(const char *cp, struct in_addr * addr);
#endif
/* Set to 1 if you have fcvt() */
#undef HAVE_FCVT
/* Set to 1 if you have rint() */
#undef HAVE_RINT
/* Set to 1 if you have finite() */
#undef HAVE_FINITE
/* Set to 1 if you have memmove() */
#undef HAVE_MEMMOVE
/* Set to 1 if you have sigsetjmp() */
#undef HAVE_SIGSETJMP
/*
* When there is no sigsetjmp, its functionality is provided by plain
* setjmp. Incidentally, nothing provides setjmp's functionality in
* that case.
*/
#ifndef HAVE_SIGSETJMP
# define sigjmp_buf jmp_buf
# define sigsetjmp(x,y) setjmp(x)
# define siglongjmp longjmp
#endif
/* Set to 1 if you have sysconf() */
#undef HAVE_SYSCONF
/* Set to 1 if you have getrusage() */
#undef HAVE_GETRUSAGE
/* Set to 1 if you have waitpid() */
#undef HAVE_WAITPID
/* Set to 1 if you have setsid() */
#undef HAVE_SETSID
/* Set to 1 if you have sigprocmask() */
#undef HAVE_SIGPROCMASK
/* Set to 1 if you have sigprocmask() */
#undef HAVE_STRCASECMP
#ifndef HAVE_STRCASECMP
extern int strcasecmp(char *s1, char *s2);
#endif
1997-12-20 04:41:06 +01:00
/* Set to 1 if you have strtol() */
#undef HAVE_STRTOL
/* Set to 1 if you have strtoul() */
#undef HAVE_STRTOUL
/* Set to 1 if you have strdup() */
#undef HAVE_STRDUP
#ifndef HAVE_STRDUP
extern char *strdup(char const *);
#endif
/* Set to 1 if you have random() */
#undef HAVE_RANDOM
#ifndef HAVE_RANDOM
extern long random(void);
#endif
/* Set to 1 if you have srandom() */
#undef HAVE_SRANDOM
#ifndef HAVE_SRANDOM
extern void srandom(unsigned int seed);
#endif
/* Set to 1 if you have libreadline.a */
#undef HAVE_LIBREADLINE
/* Set to 1 if you have libhistory.a */
#undef HAVE_LIBHISTORY
/* Set to 1 if your libreadline defines rl_completion_append_character */
#undef HAVE_RL_COMPLETION_APPEND_CHARACTER
/* Set to 1 if your libreadline has filename_completion_function */
#undef HAVE_FILENAME_COMPLETION_FUNCTION
/* Set to 1 if your readline headers actually declare the above */
#undef HAVE_FILENAME_COMPLETION_FUNCTION_DECL
/* Set to 1 if you have getopt_long() (GNU long options) */
#undef HAVE_GETOPT_LONG
1999-07-18 20:03:50 +02:00
/*
* On architectures for which we have not implemented spinlocks (or
* cannot do so), we use System V semaphores. We also use them for
* long locks. For some reason union semun is never defined in the
* System V header files so we must do it ourselves.
*/
/* Set to 1 if you have union semun */
#undef HAVE_UNION_SEMUN
/* Set to 1 if you have F_SETLK option for fcntl() */
#undef HAVE_FCNTL_SETLK
/* Set to 1 if type "long int" works and is 64 bits */
#undef HAVE_LONG_INT_64
/* Set to 1 if type "long long int" works and is 64 bits */
1998-09-11 19:16:11 +02:00
#undef HAVE_LONG_LONG_INT_64
/* Define this as the appropriate snprintf format for 64-bit ints, if any */
#undef INT64_FORMAT
/* These must be defined as the alignment requirement (NOT the size) of
* each of the basic C data types (except char, which we assume has align 1).
* MAXIMUM_ALIGNOF is the largest alignment requirement for any C data type.
* ALIGNOF_LONG_LONG_INT need only be defined if HAVE_LONG_LONG_INT_64 is.
*/
#undef ALIGNOF_SHORT
#undef ALIGNOF_INT
#undef ALIGNOF_LONG
#undef ALIGNOF_LONG_LONG_INT
#undef ALIGNOF_DOUBLE
#undef MAXIMUM_ALIGNOF
/* Define as the type of the type of the 3rd argument to accept() */
#undef ACCEPT_TYPE_ARG3
/* Define if POSIX signal interface is available */
#undef HAVE_POSIX_SIGNALS
/* Define if C++ compiler accepts "using namespace std" */
#undef HAVE_NAMESPACE_STD
/* Define if C++ compiler accepts "#include <string>" */
#undef HAVE_CXX_STRING_HEADER
/* Define if you are building with Kerberos 4 support */
#undef KRB4
/* Define if you are building with Kerberos 5 support */
#undef KRB5
/* The name of the Postgres service principal in Kerberos */
#undef PG_KRB_SRVNAM
/* The location of the Kerberos server's keytab file */
#undef PG_KRB_SRVTAB
/*
* Pull in OS-specific declarations (using link created by configure)
*/
#include "os.h"
/*
* The following is used as the arg list for signal handlers. Any ports
* that take something other than an int argument should change this in
* the port specific makefile. Note that variable names are required
* because it is used in both the prototypes as well as the definitions.
* Note also the long name. We expect that this won't collide with
* other names causing compiler warnings.
*/
#ifndef SIGNAL_ARGS
# define SIGNAL_ARGS int postgres_signal_arg
#endif
#endif /* CONFIG_H */