Re: getting oid of function

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: getting oid of function
Дата
Msg-id 1108439738.20206.47.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: getting oid of function  (Sibtay Abbas <sibtay@gmail.com>)
Ответы Re: getting oid of function  (Sibtay Abbas <sibtay@gmail.com>)
Список pgsql-hackers
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
Дата:
Сообщение: Re: [pgsql-hackers] Allow GRANT/REVOKE permissions to be applied
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: enforcing a plan (in brief)