mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Commit 6f37c08057685ee3c6c63222dba0dac012760dde removed whitespace from the SQL file but not the expected-output file, and commit 7e8db2dc420099df3fa73987cf2d2d6d1a609d86 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)
|
|
|