From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, pgsql-committers <pgsql-committers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] pgsql: Add sql_drop event for event triggers |
Date: | 2013-04-09 16:22:10 |
Message-ID: | CA+TgmoZK-DddbTY9T9uFVyi2_+jj1fREk5fbR2YRTBGVC5DNVw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Tue, Apr 9, 2013 at 12:07 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I wrote:
>> Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> writes:
>>> What about splitting the big switch statement into two of them? The
>>> first one for transaction control statements, and then the other bigger
>>> one.
>
>> Sounds like considerable uglification to fix a performance issue that's
>> entirely hypothetical... let's see some numbers that prove it's worth
>> worrying about before we do that.
>
> Actually ... wait a moment. That does have some attraction independent
> of performance questions, because what Alvaro suggested requires knowing
> which commands support command triggers in two places. Perhaps with
> some refactoring we could end up with no net addition of cruft.
>
> Personally, I'd really like to see the InvokeDDLCommandEventTriggers
> macros go away; that's not a coding style I find nice. If we had a
> separate switch containing just the event-supporting calls, we could
> drop that in favor of one invocation of the trigger stuff before and
> after the switch.
I kind of wonder if there's some way we could split ProcessUtility()
up into more digestible pieces. I can't really think of a good way to
do it though, without writing duplicative switches.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitri Fontaine | 2013-04-09 16:25:59 | Re: [COMMITTERS] pgsql: Add sql_drop event for event triggers |
Previous Message | Tom Lane | 2013-04-09 16:07:34 | Re: [COMMITTERS] pgsql: Add sql_drop event for event triggers |
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitri Fontaine | 2013-04-09 16:25:59 | Re: [COMMITTERS] pgsql: Add sql_drop event for event triggers |
Previous Message | Stephen R. van den Berg | 2013-04-09 16:21:20 | page 1 of relation global/11787 was uninitialized |