Initial commit. New function postgres_check_slot checks that the slot selected meets a minimum, is below a maximum, and/or is within an appropriate range.