couldn't you just wrap it in a case statement to change the t to true etc...?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных