From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Edoardo Panfili <edoardo(at)aspix(dot)it> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: immutable functions and enumerate type casts in indexes |
Date: | 2008-09-02 10:28:43 |
Message-ID: | 20080902102843.GD3664@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.
From | Date | Subject | |
---|---|---|---|
Next Message | Raymond O'Donnell | 2008-09-02 10:32:25 | Re: plpgsql returning resultset |
Previous Message | tfinneid | 2008-09-02 10:12:02 | plpgsql returning resultset |