Hello I suggest use plpgsql_check extension: https://github.com/okbob/plpgsql_check/ It can found some possible errors in plpgsqlcode. Postgresql itself does not check function body correctnes on create. regards, Sergei
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных