From e107f3a7e3feb7eaef8853ba117465f4f3f8ceed Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 30 Aug 2002 00:28:41 +0000 Subject: PL/pgSQL functions can return sets. Neil Conway's patch, modified so that the functionality is available to anyone via ReturnSetInfo, rather than hard-wiring it to PL/pgSQL. --- src/include/executor/executor.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/executor') diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index 8810456597..31a2b4a239 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: executor.h,v 1.74 2002/08/29 00:17:06 tgl Exp $ + * $Id: executor.h,v 1.75 2002/08/30 00:28:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -80,6 +80,9 @@ extern Datum ExecMakeFunctionResult(FunctionCachePtr fcache, ExprContext *econtext, bool *isNull, ExprDoneCond *isDone); +extern Tuplestorestate *ExecMakeTableFunctionResult(Expr *funcexpr, + ExprContext *econtext, + TupleDesc *returnDesc); extern Datum ExecEvalExpr(Node *expression, ExprContext *econtext, bool *isNull, ExprDoneCond *isDone); extern Datum ExecEvalExprSwitchContext(Node *expression, ExprContext *econtext, -- cgit v1.2.1