| 1 |
-- predictability |
| 2 |
SET synchronous_commit = on; |
| 3 |
|
| 4 |
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'test_decoding'); |
| 5 |
-- succeeds, textual plugin, textual consumer |
| 6 |
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '0', 'skip-empty-xacts', '1'); |
| 7 |
-- fails, binary plugin, textual consumer |
| 8 |
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '1', 'skip-empty-xacts', '1'); |
| 9 |
-- succeeds, textual plugin, binary consumer |
| 10 |
SELECT data FROM pg_logical_slot_get_binary_changes('regression_slot', NULL, NULL, 'force-binary', '0', 'skip-empty-xacts', '1'); |
| 11 |
-- succeeds, binary plugin, binary consumer |
| 12 |
SELECT data FROM pg_logical_slot_get_binary_changes('regression_slot', NULL, NULL, 'force-binary', '1', 'skip-empty-xacts', '1'); |
| 13 |
|
| 14 |
SELECT 'init' FROM pg_drop_replication_slot('regression_slot'); |