im正在尝试创建表空间,但似乎没有成功。我尝试过的:
pablo@myserver:~$ sudo su - postgres
postgres@myserver:~$ psql
psql (11.2 (Ubuntu 11.2-1.pgdg18.04+1))
Type "help" for help.
postgres=# create tablespace my_space owner pablo location /home/pablo/postgres
postgres-# \db
List of tablespaces
Name | Owner | Location
------------+----------+----------
pg_default | postgres |
pg_global | postgres |
(2 rows)
postgres-# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
pablo | Superuser, Create role, Create DB | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
令我感到困惑的是,表空间未在“ Thetalespaces列表”下列出,但是我没有收到错误消息。任何帮助将不胜感激