Re: [COMMITTERS] pgsql: Add sql_drop event for event triggers

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, pgsql-committers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Add sql_drop event for event triggers
Date: 2013-04-09 20:24:11
Message-ID: 20130409202411.GI3751@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Dimitri Fontaine wrote:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> > RenameStmt:
> > if (stmt allows event triggers)
> > ProcessSlowUtility(...);
> > else
> > ExecRenameStmt(stmt);
> > break;
> >
> > while in ProcessSlowUtility it'd just look normal:
> >
> > RenameStmt:
> > ExecRenameStmt(stmt);
> > break;
>
> I like it globally. Do you think some inline magic needs to happen to
> try and convince the compiler to process the whole thing as a single
> function? My understanding is that while there's no way to require the
> inlining to happen we still have some provisions to hint the compilers
> wanting to listen, or something like that.

I don't see how inlining could work here. We will end up with a couple
dozen calls to ProcessSlowUtility inside ProcessUtility, so inlining it
will be a really poor strategy.

> Do you want me to work on a patch at the end of this week?

As (one of) the committer(s) responsible for this code, I do, thanks.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Dimitri Fontaine 2013-04-09 20:30:40 Re: [HACKERS] pgsql: Add sql_drop event for event triggers
Previous Message Dimitri Fontaine 2013-04-09 19:43:30 Re: [COMMITTERS] pgsql: Add sql_drop event for event triggers

Browse pgsql-hackers by date

  From Date Subject
Next Message Dimitri Fontaine 2013-04-09 20:30:40 Re: [HACKERS] pgsql: Add sql_drop event for event triggers
Previous Message Basil Bourque 2013-04-09 20:23:38 Re: Call for Google Summer of Code mentors, admins