pgsql: Fix installcheck for test_rls_hooks

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix installcheck for test_rls_hooks
Date: 2015-04-22 16:44:12
Message-ID: E1Ykxky-0003YF-WF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix installcheck for test_rls_hooks

As pointed out by the buildfarm, test_rls_hooks wasn't functioning
properly with a clean installcheck. test_rls_hooks needs to explicitly
load the library with the hooks in it, to allow installcheck to work;
using the --temp-config doesn't help since that isn't used when running
installcheck and it isn't exactly fair to the buildfarm to modify the
installed config prior to calling installcheck.

Also, have test_rls_hooks clean up after itself.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/450fa1b5ba0e986a20d8c017500c0c0bbf1e0b4b

Modified Files
--------------
src/test/modules/test_rls_hooks/expected/test_rls_hooks.out | 7 +++++++
src/test/modules/test_rls_hooks/sql/test_rls_hooks.sql | 11 +++++++++++
2 files changed, 18 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2015-04-22 19:23:03 pgsql: Use the right type OID after creating a shell type
Previous Message Stephen Frost 2015-04-22 16:23:26 Re: pgsql: RLS fixes, new hooks, and new test module