Re: getting oid of function

From: Sibtay Abbas <sibtay(at)gmail(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: getting oid of function
Date: 2005-02-15 13:07:32
Message-ID: bd6a3551050215050735e7e637@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>How would this differ from PERFORM?

I think perform goes through the SQL by using SPI to execute the function,
where as this statement will invoke a plpgsql function without going
through the
sql ( :-) ..in case i manage to add this statement )

thankz alot for your replies

regards
Sibtay

On Tue, 15 Feb 2005 14:55:38 +1100, Neil Conway <neilc(at)samurai(dot)com> wrote:
> On Mon, 2005-02-14 at 17:02 +0500, Sibtay Abbas wrote:
> > thank you for the detailed reply
> > But what i wanted to know is that how can we actually get a function's
> > oid from its
> > name from within postgresql code itself
>
> You'll want to query the syscache. Note that due to function
> overloading, there may be multiple functions with the same name, so
> you'll need to figure out which one ought to be invoked by using the
> number and types of the parameters. See FuncnameGetCandidates() in
> namespace.c for an example.
>
> -Neil
>
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2005-02-15 13:33:29 Re: UTF8 or Unicode
Previous Message pgsql 2005-02-15 12:32:41 Re: I will be on Boston