私は「パブリック」の資格がない場合。 account_categoryテーブルのout account_categoryは、account_categoryテーブル名と競合します。PostgreSQL: "public"です。 PostgreSQLのテーブル名を完全修飾するための標準的な方法は?
「公開しますか?」また、他のRDBMS上で動作しますか?
CREATE OR REPLACE FUNCTION X_RAIN(x VARCHAR, OUT user_id VARCHAR, out account_category varchar, out depth int) returns setof record
AS
$$
BEGIN
return query
select uar.account_id, c.account_category, c.depth
from account_with_types_chart_of_account uar
inner join public.account_category c using(account_category_id);
END;
$$ LANGUAGE 'plpgsql';