I am trying to stream data from postgres replication slot with output plugin 'test_decoding'. When there are big, multiple transactions running, the output plugin seems to have interleaved LSN, ie, they are not in sequence.
How can I have the transactions in sequence and if that's not possible, how can I keep track of the offset, ie, up till where I have read and I will use this offset as starting point to stream data.