pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Support more commands in event triggers
3+ messages / 2 participants
[nested] [flat]

* pgsql: Support more commands in event triggers
@ 2015-02-23 17:23  Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 2 replies; 3+ messages in thread

From: Alvaro Herrera @ 2015-02-23 17:23 UTC (permalink / raw)
  To: pgsql-committers

Support more commands in event triggers

COMMENT, SECURITY LABEL, and GRANT/REVOKE now also fire
ddl_command_start and ddl_command_end event triggers, when they operate
on database-local objects.

Reviewed-By: Michael Paquier, Andres Freund, Stephen Frost

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/296f3a6053844089bc533630fffafaba8f016384

Modified Files
--------------
doc/src/sgml/event-trigger.sgml      |  125 +++++++++++++++++++++++++++++++++-
src/backend/commands/event_trigger.c |   34 ++++++++-
src/backend/tcop/utility.c           |   64 +++++++++++++----
src/include/commands/event_trigger.h |    1 +
4 files changed, 207 insertions(+), 17 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Support more commands in event triggers
@ 2015-02-24 16:36  Fabien COELHO <coelho@cri.ensmp.fr>
  parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Fabien COELHO @ 2015-02-24 16:36 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-committers


> doc/src/sgml/event-trigger.sgml      |  125 +++++++++++++++++++++++++++++++++-

While reading the documentation, it occured to me that the first sentence 
of the first subsection lacks a reference to "table_rewrite", see attached 
very minor suggestion.

BTW, I'll try to send a "check" script.

-- 
Fabien.

-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Attachments:

event-doc.diff (text/x-diff, 494B) download diff --git a/doc/src/sgml/event-trigger.sgml b/doc/src/sgml/event-trigger.sgml index 04353ea..48ac1ac 100644 --- a/doc/src/sgml/event-trigger.sgml +++ b/doc/src/sgml/event-trigger.sgml @@ -30,7 +30,8 @@ supported events are <literal>ddl_command_start</>, <literal>ddl_command_end</> - and <literal>sql_drop</>. + <literal>sql_drop</> + and <literal>table_rewrite</>. Support for additional events may be added in future releases. </para>
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: pgsql: Support more commands in event triggers
@ 2015-02-25 08:31  Fabien COELHO <coelho@cri.ensmp.fr>
  parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Fabien COELHO @ 2015-02-25 08:31 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-committers


Hello Alvaro,

I have submitted a small patch to improve tests on event triggers, 
including tests for GRANT/REVOKE/COMMENT:

 	https://commitfest.postgresql.org/5/179/

-- 
Fabien.


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2015-02-25 08:31 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-02-23 17:23 pgsql: Support more commands in event triggers Alvaro Herrera <alvherre@alvh.no-ip.org>
2015-02-24 16:36 ` Fabien COELHO <coelho@cri.ensmp.fr>
2015-02-25 08:31 ` Fabien COELHO <coelho@cri.ensmp.fr>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox