Re: Command Triggers, v16
Dimitri Fontaine <dimitri@2ndquadrant.fr>
From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Dimitri Fontaine <dimitri@2ndquadrant.fr>,
Thom Brown <thombrown@gmail.com>, pgsql-hackers@postgresql.org
Date: 2012-03-16T15:37:43Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > there has to be some way to do that without breaking command triggers. Sure, special case the switch branch in utility.c so as to return a different command tag for ALTER TABLE and ALTER FOREIGN TABLE. For precedents, see AlterObjectTypeCommandTag(ObjectType objtype) and case T_DropStmt: switch (((DropStmt *) parsetree)->removeType) case T_DefineStmt: switch (((DefineStmt *) parsetree)->kind) So, do we want to do the same thing for ALTER FOREIGN TABLE, and should I do that in the command triggers patch? Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support