> I want to ensure that for any given value of fk_col that there is a maximum > of one row with bool_col = true.This should be what you want: ALTER TABLE exclusion_example ADD CONSTRAINT ex EXCLUDE (fk_col WITH =) WHERE (bool_col);
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных