From what I've researched, this happens because the functionPG_LOGICAL_SLOT_PEEK_CHANGESneeds to convert the changes stored in files on disk into the storage of the database instance. https://pgpedia.info/p/pg_logical_slot_peek_changes.html Also, in the past, I've seen work being done ...