From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us |
Cc: | mail(at)joeconway(dot)com, joel(at)joelburton(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Set-returning function syntax |
Date: | 2002-05-19 02:33:22 |
Message-ID: | 20020519.113322.78710544.t-ishii@sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> The "setof" part is documented in src/backend/utils/fmgr/README.
> There's no good documentation for returning tuples at the moment,
> but basically you return a pointer to a TupleTableSlot. (Re-use
> the same slot on each call to avoid memory leakage.) There's an
> example in src/backend/executor/functions.c --- look at the uses
> of funcSlot.
That was almost same as I guessed:-)
> One reason this isn't documented is that it's really ugly. It might
> be a good idea to change it before we start having lots of user-written
> code that depends on it ...
Sounds like a good idea.
--
Tatsuo Ishii
From | Date | Subject | |
---|---|---|---|
Next Message | Mark kirkwood | 2002-05-19 02:59:10 | Re: Unbounded (Possibly) Database Size Increase - Toasting |
Previous Message | Joe Conway | 2002-05-19 00:56:14 | Re: Set-returning function syntax |