Re: immutable functions and enumerate type casts in indexes - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: immutable functions and enumerate type casts in indexes
Date
Msg-id 20080902102843.GD3664@svana.org
Whole thread Raw
In response to Re: immutable functions and enumerate type casts in indexes  (Edoardo Panfili <edoardo@aspix.it>)
Responses Re: immutable functions and enumerate type casts in indexes  (Edoardo Panfili <edoardo@aspix.it>)
List pgsql-general
On Tue, Sep 02, 2008 at 10:53:03AM +0200, Edoardo Panfili wrote:
> But i have a little question about parameters of enum_out.
> Datum enum_out(PG_FUNCTION_ARGS);
> this is a part of my function
> -----------------------------------------------------------
> Datum esterna_nome2(PG_FUNCTION_ARGS){
>     int label;
>     label = enum_out(fcinfo);
>     sprintf(debug,"false enum_out: \"%s\" ",unrolled);
>     elog(LOG, debug);
> -----------------------------------------------------------
> but it works only because my enum parameter is the first (and using
> fcinfo is a little obscure).


Look in the fmgr.h header for functions like DirectFunctionCall1 and
various other ways of calling functions.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Attachment

pgsql-general by date:

Previous
From: tfinneid@student.matnat.uio.no
Date:
Subject: plpgsql returning resultset
Next
From: Raymond O'Donnell
Date:
Subject: Re: plpgsql returning resultset