我已经将一个 .sql 文件导入到 postgres 中。我创建了一个名为“yaq”的数据库并将其导入数据库。
psql=# grant all privileges on database yaq to Jannat;
postgres@server:~$ psql yaq
psql (9.1.8, server 9.1.9)
Type "help" for help.
yaq=# \dt
List of relations
Schema | Name | Type | Owner
--------+-----------------+-------+----------
public | relationalfacts | table | yaq
public | spatial_ref_sys | table | postgres
(2 rows)
yaq=# select * from relationalfacts
yaq-# ;
id | relation | arg1 | arg2 | timebegin | timeend | location | locationlatitude | locationlongitude | primarywitness | context
----+----------+------+------+-----------+---------+----------+------------------+-------------------+----------------+---------
(0 rows)
我认为,由于我已将所有特权授予所有者“yaq”而不是“yago”,因此我无法读取该关系。有什么方法可以将关系表 yaq 的读取权限授予用户 Jannat?请帮忙