Re: getting oid of function

Поиск
Список
Период
Сортировка
Искать
От
Neil Conway
Тема
Re: getting oid of function
Дата
Msg-id
1108439738.20206.47.camel@localhost.localdomain
Ответ на
Список
Дерево обсуждения
getting oid of function Sibtay Abbas <sibtay@gmail.com>
Re: getting oid of function Michael Fuhr <mike@fuhr.org>
Re: getting oid of function Sibtay Abbas <sibtay@gmail.com>
Re: getting oid of function Neil Conway <neilc@samurai.com>
Re: getting oid of function Sibtay Abbas <sibtay@gmail.com>
Re: getting oid of function Michael Fuhr <mike@fuhr.org>
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



В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата:
От: Bruce Momjian
Дата:
FAQ