I attached a rebased v2 since v1 no longer applies on master. I kept both 0001 and 0002 for now since the other thread including 0001 is also still under discussion.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных