From 375369acd1c621bdc683c58bc9c31d4e79d14849 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 1 Apr 2004 21:28:47 +0000 Subject: Replace TupleTableSlot convention for whole-row variables and function results with tuples as ordinary varlena Datums. This commit does not in itself do much for us, except eliminate the horrid memory leak associated with evaluation of whole-row variables. However, it lays the groundwork for allowing composite types as table columns, and perhaps some other useful features as well. Per my proposal of a few days ago. --- src/tutorial/funcs_new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tutorial/funcs_new.c') diff --git a/src/tutorial/funcs_new.c b/src/tutorial/funcs_new.c index c9413096bcf..e548b85ee41 100644 --- a/src/tutorial/funcs_new.c +++ b/src/tutorial/funcs_new.c @@ -115,7 +115,7 @@ PG_FUNCTION_INFO_V1(c_overpaid); Datum c_overpaid(PG_FUNCTION_ARGS) { - TupleTableSlot *t = (TupleTableSlot *) PG_GETARG_POINTER(0); + HeapTupleHeader t = PG_GETARG_HEAPTUPLEHEADER(0); int32 limit = PG_GETARG_INT32(1); bool isnull; int32 salary; -- cgit v1.2.3