mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add STREAM_START/STREAM_STOP for transactional messages during decoding.
In test_decoding module, when skip_empty_xacts option was specified, add
stream_start/stop for streaming transactional messages. This makes the
handling of transactional messages stream consistent irrespective of
whether skip_empty_xacts option was specified.
Commit 26dd0284b9
made a similar change for non-streaming messages but
forgot to update the streaming cases.
Author: Peter Smith
Reviewed-by: Amit Kapila
Discussion: http://postgr.es/m/OS0PR01MB5716AEBD2988F8F5E9D5985794DFA@OS0PR01MB5716.jpnprd01.prod.outlook.com
This commit is contained in:
@ -29,7 +29,10 @@ COMMIT;
|
||||
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL, 'include-xids', '0', 'skip-empty-xacts', '1', 'stream-changes', '1');
|
||||
data
|
||||
----------------------------------------------------------
|
||||
opening a streamed block for transaction
|
||||
streaming message: transactional: 1 prefix: test, sz: 50
|
||||
closing a streamed block for transaction
|
||||
aborting streamed (sub)transaction
|
||||
opening a streamed block for transaction
|
||||
streaming change for transaction
|
||||
streaming change for transaction
|
||||
@ -53,7 +56,7 @@ SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL, 'incl
|
||||
streaming change for transaction
|
||||
closing a streamed block for transaction
|
||||
committing streamed transaction
|
||||
(24 rows)
|
||||
(27 rows)
|
||||
|
||||
-- streaming test for toast changes
|
||||
ALTER TABLE stream_test ALTER COLUMN data set storage external;
|
||||
|
Reference in New Issue
Block a user