just for the caution,Your in postgres 17 decoding from replica with hot_standby_feedback = off you can face a situation where the slot can get invalidated based on xmin horizon because master does not know anything about downstream slot.You cannot use invalidated slot for decoding.xmin_horizon based invalidation is not present in pg14 but it is present in pg17. You have to use hot_standby_feedback = on.