Re: Command Triggers - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Command Triggers
Date
Msg-id 1329426351-sup-5633@alvh.no-ip.org
Whole thread Raw
In response to Re: Command Triggers  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Responses Re: Command Triggers  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Re: Command Triggers  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Re: Command Triggers  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
List pgsql-hackers
Excerpts from Dimitri Fontaine's message of jue feb 16 14:42:26 -0300 2012:
> Hi,
>
> Please find attached version 8 of the patch, which fixes most of your
> complaints.

Hi,

I didn't like the new cmdtrigger.h file.  It's included by a lot of
other headers, and it's also itself including execnodes.h and
parsenodes.h which means practically the whole lot of the source tree
is included in turn.  If you could split it, so that the struct
definition is in a different file that's only included by the few .c
files that actually use that struct, I'd be much happier.

... after looking at it more closely, I think only this line needs to be
in a separate file:

typedef struct CommandContextData *CommandContext;

and that file is included by other headers; they don't need the function
declarations or the struct definition.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pg_stat_statements normalisation without invasive changes to the parser (was: Next steps on pg_stat_statements normalisation)
Next
From: Dimitri Fontaine
Date:
Subject: Re: Command Triggers