Re: Get funcid when create function

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Get funcid when create function
Дата
Msg-id CA+TgmoY+fBNNQNDzT+WABrYYT12ijH4fQGaJMBwtM9SPnTMqCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Get funcid when create function  (王翔宇 <wxyucs@gmail.com>)
Список pgsql-hackers
On Tue, Aug 14, 2018 at 10:04 PM, 王翔宇 <wxyucs@gmail.com> wrote:
> Yes, I had read this document, BUT it's call from PL/PGSQL. I want call it
> from c function.

You could look up the OID using e.g. LookupFuncWithArgs and then call
it using one of the OidFunctionCall macros, but it might be a bit
awkward.  Perhaps it would be better to look at the C code inside that
function and use some of that same logic directly from your C code.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: FailedAssertion on partprune
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Index Skip Scan