mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
> 2. This patch includes the same Table Function API fixes that I
> submitted on July 9: > > http://archives.postgresql.org/pgsql-patches/2002-07/msg00056.php > > Please disregard that one *if* this one is applied. If this one is > rejected please go ahead with the July 9th patch. The July 9th Table Function API patch mentioned above is now in CVS, so here is an updated version of the guc patch which should apply cleanly against CVS tip. Joe Conway
This commit is contained in:
@@ -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.70 2002/07/20 05:16:59 momjian Exp $
|
||||
* $Id: executor.h,v 1.71 2002/07/20 05:49:28 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -121,6 +121,25 @@ extern TupleTableSlot *ExecInitNullTupleSlot(EState *estate,
|
||||
extern TupleDesc ExecTypeFromTL(List *targetList, hasoid_t withoid);
|
||||
extern void SetChangedParamList(Plan *node, List *newchg);
|
||||
|
||||
typedef struct TupOutputState
|
||||
{
|
||||
TupleDesc tupdesc;
|
||||
DestReceiver *destfunc;
|
||||
} TupOutputState;
|
||||
|
||||
extern TupOutputState *begin_tup_output_tupdesc(CommandDest dest, TupleDesc tupdesc);
|
||||
extern void do_tup_output(TupOutputState *tstate, char **values);
|
||||
extern void do_text_output_multiline(TupOutputState *tstate, char *text);
|
||||
extern void end_tup_output(TupOutputState *tstate);
|
||||
|
||||
#define PROJECT_LINE_OF_TEXT(text_to_project) \
|
||||
do { \
|
||||
char *values[1]; \
|
||||
values[0] = text_to_project; \
|
||||
do_tup_output(tstate, values); \
|
||||
} while (0)
|
||||
|
||||
|
||||
/*
|
||||
* prototypes from functions in execUtils.c
|
||||
*/
|
||||
|
Reference in New Issue
Block a user