Re: Get funcid when create function - Mailing list pgsql-hackers

From 王翔宇
Subject Re: Get funcid when create function
Date
Msg-id CAO-0=8tk2KgGAe49ypy3dgohOVNRQyZw6cV2ojMGbqTVLWG-3Q@mail.gmail.com
Whole thread Raw
In response to Re: Get funcid when create function  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Get funcid when create function
List pgsql-hackers
Yes, I had read this document, BUT it's call from PL/PGSQL. I want call it from c function.

2018-08-13 18:57 GMT+08:00 Robert Haas <robertmhaas@gmail.com>:
On Fri, Aug 10, 2018 at 5:50 AM, 王翔宇 <wxyucs@gmail.com> wrote:
> I'm developing a extension for pg. Now I have create a event trigger on
> ddl_command_end, and this function will be called after I enter create
> function statement. In this function I can only get parseTree. In pg source
> code, I found a function named "pg_event_trigger_ddl_commands" seems provide
> cmds which include funcid. BUT I didn't found any example to call this
> function.
> who can helps?

Maybe it would help to read the documentation on that function:

https://www.postgresql.org/docs/current/static/functions-event-triggers.html

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

pgsql-hackers by date:

Previous
From: "Nasby, Jim"
Date:
Subject: Re: Facility for detecting insecure object naming
Next
From: Toshi Harada
Date:
Subject: Re: "WIP: Data at rest encryption" patch and, PostgreSQL 11-beta3