Re: Calling V1 function from within the server

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Don Y <pgsql(at)DakotaCom(dot)Net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Calling V1 function from within the server
Date: 2006-05-02 19:21:37
Message-ID: 20060502192137.GF13702@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, May 02, 2006 at 11:24:34AM -0700, Don Y wrote:
> Hi,
>
> If I define:
>
> Datum barcode_checksum(PG_FUNCTION_ARGS)
>
> PG_FUNCTION_INFO_V1(barcode_checksum)

<snip>

> and now want to *use* that function within some other
> (related) function, how can I invoke it? The intuitive

You want DirectFunctionCalln or FunctionCalln as defined in fmgr.h

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Denis Gasparin 2006-05-02 19:48:09 age(datfrozenxid) negative for template0. Is this normal?
Previous Message Christo Romberg 2006-05-02 19:02:17 FATAL: database "dspace" does not exist"