Re: Command Triggers, v16

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Command Triggers, v16
Дата
Msg-id m2zkbg4kvs.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Re: Command Triggers, v16  (Robert Haas <robertmhaas@gmail.com>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Command Triggers, v16
Следующее
От: Robert Haas
Дата:
Сообщение: Re: initdb and fsync