Re: [PATCH] Document that directly callable functions may use fn_extra

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [PATCH] Document that directly callable functions may use fn_extra
Дата
Msg-id 556883DE.5090508@gmx.net
обсуждение исходный текст
Ответ на [PATCH] Document that directly callable functions may use fn_extra  (Craig Ringer <craig@2ndquadrant.com>)
Ответы Re: [PATCH] Document that directly callable functions may use fn_extra  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
On 5/28/15 10:15 PM, Craig Ringer wrote:
> I was a puzzled by  src/backend/utils/fmgr/README and fmgr.h's
> descriptions of fcinfo->flinfo->fn_extra (FmgrInfo.fn_extra) as they
> seem to conflict with actual usage.
> 
> The docs suggest that fl_extra is for the use of function call handlers,
> but in practice it's also used heavily by function implementations as a
> cache space.

The documentation could also be updated about this.  It mentions using
fn_extra for PL handlers, gist functions, and set-returning functions,
but it doesn't say that you can use it any old function for anything you
want.

I'm not sure how up to date that README actually is.  It looks more like
a historical document describing the original proposal.




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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: RFC: Remove contrib entirely
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1