Create function in public or catalog schema. This function will be visible to each schema and user
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных