Make FUNC_MAX_ARGS equal INDEX_MAX_KEYS, as it should.
Set default INDEX_MAX_KEYS to 16. Document minimum safe value is 9.
This commit is contained in:
parent
f1e1634e72
commit
b9d832f6ef
@ -96,13 +96,15 @@
|
|||||||
* Maximum number of columns in an index and maximum number of arguments
|
* Maximum number of columns in an index and maximum number of arguments
|
||||||
* to a function. They must be the same value.
|
* 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
|
* There is no maximum value, though if you want to pass more than 32
|
||||||
* arguments to a function, you will have to modify
|
* arguments to a function, you will have to modify
|
||||||
* pgsql/src/backend/utils/fmgr/fmgr.c and add additional entries
|
* pgsql/src/backend/utils/fmgr/fmgr.c and add additional entries
|
||||||
* to the 'case' statement for the additional arguments.
|
* to the 'case' statement for the additional arguments.
|
||||||
*/
|
*/
|
||||||
#define INDEX_MAX_KEYS 16
|
#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.
|
* Enables debugging print statements in the date/time support routines.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user