Make bdr_replicate_ddl_command() obey the command filter.
authorPetr Jelinek <pjmodos@pjmodos.net>
Wed, 8 Apr 2015 00:04:42 +0000 (02:04 +0200)
committerPetr Jelinek <pjmodos@pjmodos.net>
Wed, 8 Apr 2015 00:11:19 +0000 (02:11 +0200)
commit4005c1deec4c955df7facd94ce2eae23e4d349d9
treeccb61ae6210018bc8eec57b46a235f0b90ad4f8c
parent721a8ab9b72b3dd577541c417fc011fc1cc719a7
Make bdr_replicate_ddl_command() obey the command filter.

Previously, bdr_replicate_ddl_command() would always execute any
command, no matter if it's considered safe or not. But this behaviour is
too much of a footgun for users of this function. Plus we already have
mechanism to override command filter - the
bdr.permit_unsafe_ddl_commands GUC, so it makes sense that
bdr_replicate_ddl_command() function should behave according to this GUC
just like plain DDL in BDR.
bdr_commandfilter.c
bdr_executor.c