Hi,
replication_slot_catalog_xmin is not explictly initialized to InvalidTransactionId.
Normally, there isn't an issue with this because a freshly mmap'd memory is zeroed, and the value of InvalidTransactionId is 0.
If the memory was not 0 for whatever reason, VACUUM would not behave as expected.
See attached patch.
Thanks,
Yi Wen