I haven't thought through how to fix it, but I suspect that we may needto do more checking before we decide to remove PHVs inremove_rel_from_query.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных