That having a table and function with similar names causes this problem is a bug.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных