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.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tutorial/funcs.c') diff --git a/src/tutorial/funcs.c b/src/tutorial/funcs.c index d2c123a0094..5e8ad6ee707 100644 --- a/src/tutorial/funcs.c +++ b/src/tutorial/funcs.c @@ -22,7 +22,7 @@ float8 *add_one_float8(float8 *arg); Point *makepoint(Point *pointx, Point *pointy); text *copytext(text *t); text *concat_text(text *arg1, text *arg2); -bool c_overpaid(TupleTableSlot *t, /* the current instance of EMP */ +bool c_overpaid(HeapTupleHeader t, /* the current instance of EMP */ int32 limit); @@ -94,7 +94,7 @@ concat_text(text *arg1, text *arg2) /* Composite types */ bool -c_overpaid(TupleTableSlot *t, /* the current instance of EMP */ +c_overpaid(HeapTupleHeader t, /* the current instance of EMP */ int32 limit) { bool isnull; -- cgit v1.2.3