Re: event trigger API documentation?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: event trigger API documentation?
Дата
Msg-id 1371690513.13762.32.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: event trigger API documentation?  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Ответы Re: event trigger API documentation?  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
Random observation in this general area:  Regular triggers provide the
field Trigger *tg_trigger in the trigger data, which allows you to get
the trigger name, OID, and such.  Event triggers don't expose anything
comparable.  That should perhaps be added.

Also, as I'm maybe about the fourth person ever to write an actual event
trigger, I have a usability report of sorts.  I found it confusing that
the trigger timing is encoded into the event name.  So instead of ON
ddl_command_start, I was expecting something more like BEFORE
ddl_command.  There might be a reason for this design choice, but I
found it a confusing departure from known trigger concepts.





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

Предыдущее
От: Claudio Freire
Дата:
Сообщение: Re: Implementing incremental backup
Следующее
От: Peter Eisentraut
Дата:
Сообщение: slightly confusing JSON error context