bdr.table_set_replication_sets should permit unsafe commands dev/github-67
authorCraig Ringer <craig@2ndquadrant.com>
Fri, 15 May 2015 09:08:52 +0000 (17:08 +0800)
committerCraig Ringer <craig@2ndquadrant.com>
Fri, 22 May 2015 03:59:09 +0000 (11:59 +0800)
commitab20493c79658f8031407d762da88daba16d4172
treea31f307a1bfd8f553066d871a0d0eba2012c9dc4
parentc66fa0470e847cdc973aa06d3217569442042730
bdr.table_set_replication_sets should permit unsafe commands

In 4005c1d bdr_replicate_ddl_command was changed not to override the
command filter, but this broke replication sets in UDR, since they have
to use SECURITY LABEL.

SET bdr.permit_unsafe_ddl_commands on bdr.table_set_replication_sets
since it knows what it's doing.

Also add regression test coverage of replication sets to UDR by
using bdr.bdr_replicate_ddl_command(...) to wrap DDL. This requires
explicitly schema-qualifying objects otherwise the error:

    "no schema has been selected to create in"

will arise.

Fixes #67
Makefile.in
bdr.control
expected/ddl/replication_set.out
expected/upgrade.out
extsql/bdr--0.10.0.1--0.10.0.2.sql [new file with mode: 0644]
sql/ddl/replication_set.sql
sql/upgrade.sql