Skip to content

Commit b9d832f

Browse files
committed
Make FUNC_MAX_ARGS equal INDEX_MAX_KEYS, as it should.
Set default INDEX_MAX_KEYS to 16. Document minimum safe value is 9.
1 parent f1e1634 commit b9d832f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/include/config.h.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@
9696
* Maximum number of columns in an index and maximum number of arguments
9797
* to a function. They must be the same value.
9898
*
99+
* The minimum value is 9 (btree index creation has a 9-argument function).
100+
*
99101
* There is no maximum value, though if you want to pass more than 32
100102
* arguments to a function, you will have to modify
101103
* pgsql/src/backend/utils/fmgr/fmgr.c and add additional entries
102104
* to the 'case' statement for the additional arguments.
103105
*/
104106
#define INDEX_MAX_KEYS 16
105-
#define FUNC_MAX_ARGS (INDEX_MAX_KEYS+1)
107+
#define FUNC_MAX_ARGS INDEX_MAX_KEYS
106108

107109
/*
108110
* Enables debugging print statements in the date/time support routines.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy