How to fix 2F005: function_executed_no_return_statement in PostgreSQL | DevErrors