bdr: Fix transaction handling in output plugin.
authorPetr Jelinek <pjmodos@pjmodos.net>
Fri, 21 Nov 2014 19:08:29 +0000 (20:08 +0100)
committerPetr Jelinek <pjmodos@pjmodos.net>
Fri, 21 Nov 2014 19:08:29 +0000 (20:08 +0100)
commit8bcf783735a819f32d77b26cb3b27cf2a4f7d2ac
tree3c7a59cced83a6fe7787a6c94bb6bc49ed8e0c01
parent565889ffb15ed73ec752f044b38bd0ce19e31a35
bdr: Fix transaction handling in output plugin.

Previously it was impossible to use the output plugin from within SQL
(for example using pg_logical_slot_peek_binary_changes) as it crashed
because it tryed to start transaction even if one was already started.
bdr.c
bdr_output.c