CHECK(end_date is null or start_date <= end_date)
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных