mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 16:17:17 +02:00
Commit6f37c08057
removed whitespace from the SQL file but not the expected-output file, and commit7e8db2dc42
changed the error message without updating the expected outputs.
36 lines
982 B
Plaintext
36 lines
982 B
Plaintext
-- predictability
|
|
SET synchronous_commit = on;
|
|
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'test_decoding');
|
|
?column?
|
|
----------
|
|
init
|
|
(1 row)
|
|
|
|
-- succeeds, textual plugin, textual consumer
|
|
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '0');
|
|
data
|
|
------
|
|
(0 rows)
|
|
|
|
-- fails, binary plugin, textual consumer
|
|
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '1');
|
|
ERROR: output plugin cannot produce binary output
|
|
-- succeeds, textual plugin, binary consumer
|
|
SELECT data FROM pg_logical_slot_get_binary_changes('regression_slot', NULL, NULL, 'force-binary', '0');
|
|
data
|
|
------
|
|
(0 rows)
|
|
|
|
-- succeeds, binary plugin, binary consumer
|
|
SELECT data FROM pg_logical_slot_get_binary_changes('regression_slot', NULL, NULL, 'force-binary', '1');
|
|
data
|
|
------
|
|
(0 rows)
|
|
|
|
SELECT 'init' FROM pg_drop_replication_slot('regression_slot');
|
|
?column?
|
|
----------
|
|
init
|
|
(1 row)
|
|
|