summaryrefslogtreecommitdiff
path: root/src/backend/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils')
-rw-r--r--src/backend/utils/fmgr/README5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/utils/fmgr/README b/src/backend/utils/fmgr/README
index 98d4e7bd51..3ffc4dddd0 100644
--- a/src/backend/utils/fmgr/README
+++ b/src/backend/utils/fmgr/README
@@ -423,6 +423,11 @@ function is called in). The function stores pointers to the Tuplestore and
TupleDesc into ReturnSetInfo, sets returnMode to indicate materialize mode,
and returns null. isDone is not used and should be left at ExprSingleResult.
+If the function is being called as a table function (ie, it appears in a
+FROM item), then the expected tuple descriptor is passed in ReturnSetInfo;
+in other contexts the expectedDesc field will be NULL. The function need
+not pay attention to expectedDesc, but it may be useful in special cases.
+
There is no support for functions accepting sets; instead, the function will
be called multiple times, once for each element of the input set.