Re: Calling V1 function from within the server

From: Don Y <pgsql(at)DakotaCom(dot)Net>
To: kleptog(at)svana(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Calling V1 function from within the server
Date: 2006-05-03 01:56:38
Message-ID: 44580DD6.9040600@DakotaCom.Net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout wrote:
> 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

Yikes! I *never* would have found that! :-(
Thanks!
--don

In response to

Browse pgsql-general by date

  From Date Subject
Next Message pgdb 2006-05-03 02:31:19 Replicating PostgreSQL DB to lightweight system
Previous Message Tom Lane 2006-05-03 01:32:54 Re: Locking confusion