aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-01-11 05:58:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-01-11 05:58:55 +0000
commitb9d832f6ef2a8d39f06fb20ba40a400c8187a288 (patch)
treea4b2fe711a9c68ccd4ed09a99d5f1301a27e6a04 /src
parentf1e1634e7206867a31ab97ef555b976cfd5458b0 (diff)
downloadpostgresql-b9d832f6ef2a8d39f06fb20ba40a400c8187a288.tar.gz
postgresql-b9d832f6ef2a8d39f06fb20ba40a400c8187a288.zip
Make FUNC_MAX_ARGS equal INDEX_MAX_KEYS, as it should.
Set default INDEX_MAX_KEYS to 16. Document minimum safe value is 9.
Diffstat (limited to 'src')
-rw-r--r--src/include/config.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in
index 85cf00112d4..e1b9bf8482e 100644
--- a/src/include/config.h.in
+++ b/src/include/config.h.in
@@ -96,13 +96,15 @@
* Maximum number of columns in an index and maximum number of arguments
* to a function. They must be the same value.
*
+ * The minimum value is 9 (btree index creation has a 9-argument function).
+ *
* 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.
*/
#define INDEX_MAX_KEYS 16
-#define FUNC_MAX_ARGS (INDEX_MAX_KEYS+1)
+#define FUNC_MAX_ARGS INDEX_MAX_KEYS
/*
* Enables debugging print statements in the date/time support routines.