Skip to content

Commit 1c14755

Browse files
committed
Doc: fix data types of FuncCallContext's call_cntr and max_calls fields.
Commit 23a27b0 widened these from uint32 to uint64, but I overlooked that the documentation explicitly showed them as uint32. Per report from Vicky Vergara. Report: <[email protected]>
1 parent 24aef33 commit 1c14755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/xfunc.sgml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2870,15 +2870,15 @@ HeapTupleGetDatum(HeapTuple tuple)
28702870
is used to hold a pointer to <structname>FuncCallContext</>
28712871
across calls.
28722872
<programlisting>
2873-
typedef struct
2873+
typedef struct FuncCallContext
28742874
{
28752875
/*
28762876
* Number of times we've been called before
28772877
*
28782878
* call_cntr is initialized to 0 for you by SRF_FIRSTCALL_INIT(), and
28792879
* incremented for you every time SRF_RETURN_NEXT() is called.
28802880
*/
2881-
uint32 call_cntr;
2881+
uint64 call_cntr;
28822882

28832883
/*
28842884
* OPTIONAL maximum number of calls
@@ -2887,7 +2887,7 @@ typedef struct
28872887
* If not set, you must provide alternative means to know when the
28882888
* function is done.
28892889
*/
2890-
uint32 max_calls;
2890+
uint64 max_calls;
28912891

28922892
/*
28932893
* OPTIONAL pointer to result slot

0 commit comments

Comments
 (0)