Re: sql_drop Event Trigger
От | Alvaro Herrera |
---|---|
Тема | Re: sql_drop Event Trigger |
Дата | |
Msg-id | 20130304183827.GG9507@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: sql_drop Event Trigger (Dimitri Fontaine <dimitri@2ndQuadrant.fr>) |
Ответы |
Re: sql_drop Event Trigger
|
Список | pgsql-hackers |
Dimitri Fontaine escribió: > Alvaro Herrera <alvherre@2ndquadrant.com> writes: > > Do we want some more stuff provided by pg_dropped_objects? We now have > > classId, objectId, objectSubId, object name, schema name. One further > > thing I think we need is the object's type, i.e. a simple untranslated > > string "table", "view", "operator" and so on. AFAICT this requires a > > nearly-duplicate of getObjectDescription. > > About what missing information to add, please review: > > http://wiki.postgresql.org/wiki/Event_Triggers#How_to_expose_Information_to_Event_Triggers_Functions That list contains the following items: TG_OBJECTID TG_OBJECTNAME TG_SCHEMANAME TG_OPERATION TG_OBTYPENAME TG_CONTEXT Of the above, TG_OPERATION is redundant with the fact that we're building pg_dropped_objects (i.e. the user code knows it's dealing with a drop) and TG_CONTEXT is not relevant; with the attached patch, we provide all the other bits. I think this is mostly ready to go in. I'll look at your docs, and unless there are more objections will commit later or early tomorrow. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Вложения
В списке pgsql-hackers по дате отправления: