Well, what about using inheritence and relation identifiers?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных