Re: Set-returning function syntax

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Set-returning function syntax
Дата
Msg-id 20020519.113322.78710544.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: Set-returning function syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Set-returning function syntax
Следующее
От: Mark kirkwood
Дата:
Сообщение: Re: Unbounded (Possibly) Database Size Increase - Toasting