Re: Get funcid when create function

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: 王翔宇 <wxyucs(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Get funcid when create function
Date: 2018-08-13 10:57:05
Message-ID: CA+TgmoatBM0WuOKTeRsdZPMxZnWyAWM-kmFT5VCNMtbKzCShtw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Aug 10, 2018 at 5:50 AM, 王翔宇 <wxyucs(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2018-08-13 12:32:59 Re: Expression errors with "FOR UPDATE" and postgres_fdw with partition wise join enabled.
Previous Message Heikki Linnakangas 2018-08-13 10:53:05 Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket