Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb9d832f

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 parentf1e1634 commitb9d832f

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
#defineINDEX_MAX_KEYS16
105-
#defineFUNC_MAX_ARGS(INDEX_MAX_KEYS+1)
107+
#defineFUNC_MAX_ARGSINDEX_MAX_KEYS
106108

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp