At a quick glance, this sounds very similar to the problems discussed in the following threads: https://postgr.es/m/CAGRkXqTo%2BaK%3DGTy5pSc-9cy8H2F2TJvcrZ-zXEiNJj93np1UUw%40mail.gmail.com https://postgr.es/m/aFRxC1W_kZU9OjJ9%40nathan -- nathan
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных