Fixed problem with repeated records
Fixed problem with repeated records

It seems a problem with psycopg triggered by receiving the transaction
all in one gulp: the lsn is reset at the beginning of the transaction.
The problem seems worked around if the transaction is received across
several messages, so force writing in chunk.

GambitResearch/replisome,GambitResearch/replisome,GambitResearch/replisome