Re: Add more tests on event triggers

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add more tests on event triggers
Date: 2015-02-25 13:06:24
Message-ID: 20150225130624.GO5169@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fabien COELHO wrote:
>
> Here are some more tests for event triggers, especially about new features
> introduced recently in 296f3a6053844089bc533630fffafaba8f016384.
>
> Check that COMMENT, GRANT and REVOKE do trigger some events.
>
> The patch also check some more error cases: SQL function, functions with
> declared arguments, arguments passed to the trigger, event trigger on global
> objects (ROLE, TABLESPACE, DATABASE).

Will have a look later, thanks.

> I have left out "SECURITY LABEL" which would require a special security
> label provider. Note that they do not seem to be tested at all anyway:-( The
> "security_label.sql" really tests that all fails when no plugin is
> available. If some actual tests are added to security label some day, I
> think that event triggers about them should be tested there.

You can add tests in src/test/modules/dummy_seclabel.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-02-25 14:13:27 Re: compress method for spgist - 2
Previous Message Michael Paquier 2015-02-25 12:27:46 NULL-pointer check and incorrect comment for pstate in addRangeTableEntry