Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0bdd0cdd
Commit
0bdd0cdd
authored
Jan 10, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fmgr to allow 32 arguments.
parent
8a093d0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
248 additions
and
3 deletions
+248
-3
src/backend/utils/fmgr/fmgr.c
src/backend/utils/fmgr/fmgr.c
+242
-2
src/include/config.h.in
src/include/config.h.in
+6
-1
No files found.
src/backend/utils/fmgr/fmgr.c
View file @
0bdd0cdd
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.3
4 2000/01/10 17:14:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.3
5 2000/01/10 18:18:30
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -233,6 +233,238 @@ fmgr_c(FmgrInfo *finfo,
values
->
data
[
14
],
values
->
data
[
15
]);
break
;
case
17
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
]);
break
;
case
18
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
]);
break
;
case
19
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
]);
break
;
case
20
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
]);
break
;
case
21
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
]);
break
;
case
22
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
]);
break
;
case
23
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
]);
break
;
case
24
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
]);
break
;
case
25
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
]);
break
;
case
26
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
]);
break
;
case
27
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
],
values
->
data
[
26
]);
break
;
case
28
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
],
values
->
data
[
26
],
values
->
data
[
27
]);
break
;
case
29
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
],
values
->
data
[
26
],
values
->
data
[
27
],
values
->
data
[
28
]);
break
;
case
30
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
],
values
->
data
[
26
],
values
->
data
[
27
],
values
->
data
[
28
],
values
->
data
[
29
]);
break
;
case
31
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
],
values
->
data
[
26
],
values
->
data
[
27
],
values
->
data
[
28
],
values
->
data
[
29
],
values
->
data
[
30
]);
break
;
case
32
:
returnValue
=
(
*
user_fn
)
(
values
->
data
[
0
],
values
->
data
[
1
],
values
->
data
[
2
],
values
->
data
[
3
],
values
->
data
[
4
],
values
->
data
[
5
],
values
->
data
[
6
],
values
->
data
[
7
],
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
],
values
->
data
[
26
],
values
->
data
[
27
],
values
->
data
[
28
],
values
->
data
[
29
],
values
->
data
[
30
],
values
->
data
[
31
]);
break
;
default:
/*
* XXX Note that functions with >FUNC_MAX_ARGS arguments can only be
...
...
@@ -247,7 +479,15 @@ fmgr_c(FmgrInfo *finfo,
values
->
data
[
8
],
values
->
data
[
9
],
values
->
data
[
10
],
values
->
data
[
11
],
values
->
data
[
12
],
values
->
data
[
13
],
values
->
data
[
14
],
values
->
data
[
15
]);
values
->
data
[
14
],
values
->
data
[
15
],
values
->
data
[
16
],
values
->
data
[
17
],
values
->
data
[
18
],
values
->
data
[
19
],
values
->
data
[
20
],
values
->
data
[
21
],
values
->
data
[
22
],
values
->
data
[
23
],
values
->
data
[
24
],
values
->
data
[
25
],
values
->
data
[
26
],
values
->
data
[
27
],
values
->
data
[
28
],
values
->
data
[
29
],
values
->
data
[
30
],
values
->
data
[
31
]);
break
;
default:
elog
(
ERROR
,
"fmgr_c: function %u: too many arguments (%d > %d)"
,
...
...
src/include/config.h.in
View file @
0bdd0cdd
...
...
@@ -93,8 +93,13 @@
#define INDEXSCAN_PATCH
/*
* Maximum number of columns in an index and maximum number of args
* Maximum number of columns in an index and maximum number of arg
ument
s
* to a function. They must be the same value.
*
* 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 8
#define FUNC_MAX_ARGS INDEX_MAX_KEYS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment