]> granicus.if.org Git - postgresql/commitdiff
Move the NAMEDATALEN/OIDNAMELEN defines to include/config.h
authorMarc G. Fournier <scrappy@hub.org>
Mon, 7 Oct 1996 23:57:01 +0000 (23:57 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Mon, 7 Oct 1996 23:57:01 +0000 (23:57 +0000)
src/include/config.h

index 585f7af3cb820665a0613e5734b7a994b196d2f8..a81d64e620dd4c23392e55100a29a1af27c74d44 100644 (file)
 #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