【发布时间】:2019-11-10 04:38:48
【问题描述】:
您好,我的 postgresql 数据库中有一个用户 \dt 为用户输出:
test=> \dt
List of relations
Schema | Name | Type | Owner
--------+--------------------------+-------+----------
public | code | table | postgres
public | code_to_indicator | table | postgres
public | indicator | table | postgres
如您所见,表的所有者是 postgres 但是如果为 postgres 用户运行 \dt 命令,它会说:
postgres=# \dt
Did not find any relations.
这怎么可能?另外,如果我尝试由 postgres 用户选择,它也会失败:
postgres=# select * from indicator;
ERROR: relation "indicator" does not exist
LINE 1: select * from indicator;
有人可以帮忙吗?直到今天一切都很好,出了点问题我什至不知道是什么。 PostgreSQL 版本:11.4
【问题讨论】:
标签: postgresql schema public rights