【发布时间】:2019-09-06 08:25:57
【问题描述】:
使用 postgres11,我正在尝试注册源代码分发中的示例 Complex 类型。
我已经构建了没有任何问题的类型:
git clone https://github.com/postgres/postgres.git
cd postgres/src/tutorial
make
但是当我尝试安装它时,我遇到了权限问题:
~/p/s/tutorial> psql -U postgres -W
Password:
psql (11.2 (Debian 11.2-1.pgdg90+1))
Type "help" for help.
postgres=# \c testdata
Password for user postgres:
You are now connected to database "testdata" as user "postgres".
testdata=#
testdata=# \i complex.sql
psql:complex.sql:39: NOTICE: type "complex" is not yet defined
DETAIL: Creating a shell type definition.
psql:complex.sql:39: ERROR: could not access file "/home/mnuttall/postgres/src/tutorial/complex": Permission denied
psql:complex.sql:47: ERROR: type complex does not exist
我不确定权限问题到底来自哪里,因为我已将 src/tutorial 目录中所有内容的权限更改为 777。
有人有想法吗?
【问题讨论】:
标签: postgresql unix file-permissions