相关疑难解决方法(0)

为什么psql找不到现有表的关系名?

这是'我目前的状态.

Eonil=# \d+
                       List of relations
 Schema |    Name    | Type  | Owner |    Size    | Description 
--------+------------+-------+-------+------------+-------------
 public | TestTable1 | table | Eonil | 8192 bytes | 
(1 row)

Eonil=# \d+ TestTable1
Did not find any relation named "TestTable1".
Eonil=# 
Run Code Online (Sandbox Code Playgroud)

有什么问题,如何查看表定义?

postgresql schema psql

26
推荐指数
1
解决办法
1万
查看次数

postgresql数据库所有者无法访问数据库 - "找不到关系".

我有一个用户:user_x在postgresql上拥有一个数据库,并且没有任何ROLE属性,如(CREATE_DB,SUPERUSER,...)

这个user_x可以访问整个数据库,创建表(在他的数据库上),选择,插入和更新数据.

我有这个数据库列表:

mydatabase=> \l
                                     List of databases
          Name           |  Owner   | Encoding  | Collation | Ctype |   Access privileges   
-------------------------+----------+-----------+-----------+-------+-----------------------
 postgres                | postgres | SQL_ASCII | C         | C     | 
 mydatabase              | user_x   | UTF8      | C         | C     | 
 template0               | postgres | SQL_ASCII | C         | C     | =c/postgres          +
                         |          |           |           |       | postgres=CTc/postgres
 template1               | postgres | SQL_ASCII | C         | C     | =c/postgres          +
                         |          |           |           |       | postgres=CTc/postgres
 whoami                  | postgres …
Run Code Online (Sandbox Code Playgroud)

postgresql user-permissions

25
推荐指数
1
解决办法
4万
查看次数

PostgreSQL:如何在用户级别设置search_path?

我想将默认search_path设置为"public"架构以外的其他内容.但我只想为特定用户这样做.我怎么能做到这一点?

postgresql

18
推荐指数
1
解决办法
4万
查看次数

标签 统计

postgresql ×3

psql ×1

schema ×1

user-permissions ×1