我正在用WebAPI核心net5.0开发一个asp.net在域对象中,我使用Ltree作为层次结构。在添加和更新迁移时,会得到以下错误:Npgsql.PostgresException: type "ltree" does not exist。我做了一些研究发现,如果我在"create extension Ltree"数据库上运行Postg
当我试图写一个包含ltree类型的值的实体时,我得到了以下错误: column "path" is of type ltree but expression is of type character不起作用,所以我创建了一个强制转换varchar -> ltree,如下所示 CREATE OR REPLACE FUNCTION ltree_invarchar(varchar) RETURNS ltreeltree_invarchar(varchar) AS IM
SQL state [XX000]; error code [0]; ERROR: cache lookup failed for type 17024; nested exception is org.postgresql.util.PSQLException, "foo.bar") fun `test2`() { } @