aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-10-07 23:57:01 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-10-07 23:57:01 +0000
commit87bb8daab8203292a79be090d2375e5646730166 (patch)
tree4edd045e653a2ccc1144ef637c2c1d8693ba4093
parent6470d5b1c130d96a0dffe64121197a2a6f98ac71 (diff)
downloadpostgresql-87bb8daab8203292a79be090d2375e5646730166.tar.gz
postgresql-87bb8daab8203292a79be090d2375e5646730166.zip
Move the NAMEDATALEN/OIDNAMELEN defines to include/config.h
-rw-r--r--src/include/config.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/include/config.h b/src/include/config.h
index 585f7af3cb8..a81d64e620d 100644
--- a/src/include/config.h
+++ b/src/include/config.h
@@ -44,7 +44,21 @@
#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!
+#
+#define NAMEDATALEN 32
+# OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid)
+#define OIDNAMELEN 36
+
/*
* On architectures for which we have not implemented spinlocks (or
* cannot do so), we use System V semaphores. We also use them for