Open a streamed block for transactional messages during decoding - Mailing list pgsql-hackers

From Zhijie Hou (Fujitsu)
Subject Open a streamed block for transactional messages during decoding
Date
Msg-id OS0PR01MB5716AEBD2988F8F5E9D5985794DFA@OS0PR01MB5716.jpnprd01.prod.outlook.com
Whole thread Raw
Responses Re: Open a streamed block for transactional messages during decoding
List pgsql-hackers
Hi,

While reviewing the test_decoding code, I noticed that when skip_empty_xacts
option is specified, it doesn't open the streaming block( e.g.
pg_output_stream_start) before streaming the transactional MESSAGE even if it's
the first change in a streaming block.

It looks inconsistent with what we do when streaming DML
changes(e.g. pg_decode_stream_change()).

Here is a small patch to open the stream block in this case.

Best Regards,
Hou Zhijie


Attachment

pgsql-hackers by date:

Previous
From: Devrim Gündüz
Date:
Subject: d844cd75a and postgres_fdw
Next
From: Peter Eisentraut
Date:
Subject: Re: [PATCH] Tracking statements entry timestamp in pg_stat_statements