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

Commitd26b042

Browse files
committed
Fix documentation of FmgrInfo.fn_nargs.
Some ancient comments claimed that fn_nargs could be -1 to indicate avariable number of input arguments; but this was never implemented, andis at variance with what we ultimately did with "variadic" functions.Update the comments.
1 parentc6a4ace commitd26b042

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎src/backend/utils/fmgr/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ typedef struct
6767
{
6868
PGFunction fn_addr; /* pointer to function or handler to be called */
6969
Oid fn_oid; /* OID of function (NOT of handler, if any) */
70-
short fn_nargs; /*0..FUNC_MAX_ARGS, or -1 if variable arg count */
70+
short fn_nargs; /*number of input args (0..FUNC_MAX_ARGS) */
7171
bool fn_strict; /* function is "strict" (NULL in => NULL out) */
7272
bool fn_retset; /* function returns a set (over multiple calls) */
7373
unsigned char fn_stats; /* collect stats if track_functions > this */

‎src/include/fmgr.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ typedef struct FmgrInfo
5454
{
5555
PGFunctionfn_addr;/* pointer to function or handler to be called */
5656
Oidfn_oid;/* OID of function (NOT of handler, if any) */
57-
shortfn_nargs;/* 0..FUNC_MAX_ARGS, or -1 if variable arg
58-
* count */
57+
shortfn_nargs;/* number of input args (0..FUNC_MAX_ARGS) */
5958
boolfn_strict;/* function is "strict" (NULL in => NULL out) */
6059
boolfn_retset;/* function returns a set */
6160
unsignedcharfn_stats;/* collect stats if track_functions > this */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp