summaryrefslogtreecommitdiff
path: root/src/include/config.h
diff options
context:
space:
mode:
authorMarc G. Fournier1996-10-08 00:09:05 +0000
committerMarc G. Fournier1996-10-08 00:09:05 +0000
commitd6dfbecb07bf6dbbcef5bcc9b917163cec97ca33 (patch)
tree1cb45a1bd8baea345fd7aabeebaa17986f292b8f /src/include/config.h
parent87bb8daab8203292a79be090d2375e5646730166 (diff)
Moved the following definitions to include/config.h from Makefile.global:
NAMEDATALEN OIDDATALEN EUROPEAN_DATES HBA DEADLOCK_TIMEOUT OPENLINK_PATCHES NULL_PATCH ARRAY_PATCH Attempting to document and centralize as many of the "defines" as possible... kinda useless to have defines if nobody knows they exist, eh?
Diffstat (limited to 'src/include/config.h')
-rw-r--r--src/include/config.h46
1 files changed, 34 insertions, 12 deletions
diff --git a/src/include/config.h b/src/include/config.h
index a81d64e620d..0a9ae57be06 100644
--- a/src/include/config.h
+++ b/src/include/config.h
@@ -1,4 +1,3 @@
-
/* the purpose of this file is to reduce the use of #ifdef's through
* the code base by those porting the software, an dto facilitate the
* eventual use of autoconf to build the server
@@ -39,26 +38,37 @@
* 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
-# NAMEDATALEN is the max length for system identifiers (e.g. table names,
-# attribute names, function names, etc.)
-#
-# These MUST be set here. DO NOT COMMENT THESE OUT
-# Setting these too high will result in excess space usage for system catalogs
-# Setting them too low will make the system unusable.
-# values between 16 and 64 that are multiples of four are recommended.
-#
-# NOTE also that databases with different NAMEDATALEN's cannot interoperate!
-#
+/* NAMEDATALEN is the max length for system identifiers (e.g. table names,
+ * attribute names, function names, etc.)
+ *
+ * These MUST be set here. DO NOT COMMENT THESE OUT
+ * Setting these too high will result in excess space usage for system catalogs
+ * Setting them too low will make the system unusable.
+ * values between 16 and 64 that are multiples of four are recommended.
+ *
+ * NOTE also that databases with different NAMEDATALEN's cannot interoperate!
+ */
#define NAMEDATALEN 32
# OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid)
#define OIDNAMELEN 36
+/* turn this on if you prefer European style dates instead of American
+ * style dates
+ */
+#define EUROPEAN_DATES FALSE
+
+/*
+ * If you do not plan to use Host based authentication,
+ * comment out the following line
+ */
+#define HBA
+
/*
* On architectures for which we have not implemented spinlocks (or
* cannot do so), we use System V semaphores. We also use them for
@@ -87,6 +97,18 @@
/* #define LOARRAY */
#define ESCAPE_PATCH
#define ARRAY_PATCH
+#define NULL_PATCH
+#define OPENLINK_PATCHES
+
+/* This is the time, in seconds, at which a given backend server
+ * will wait on a lock before deciding to abort the transaction
+ * (this is what we do in lieu of deadlock detection).
+ *
+ * Low numbers are not recommended as they will tend to cause
+ * false aborts if many transactions are long-lived.
+ */
+#define DEADLOCK_TIMEOUT 60
+
/* Fixes use of indexes infunctions */
#define INDEXSCAN_PATCH