使用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。
有人有主意吗?
答案 0 :(得分:1)
系统用户<div data-v-68be103e="" class="container">
<div data-v-68be103e="" class="list nearby">
<div data-v-68be103e="" class="header">
<div data-v-68be103e="" class="title">
<p data-v-68be103e="">Nearby users</p>
</div>
</div>
<div data-v-68be103e="" class="userlist">
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">introzen</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">TYLAR5</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">introzan</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
</div>
</div>
<div data-v-68be103e="" class="list">
<div data-v-68be103e="" class="header all">
<div data-v-68be103e="" class="title">
<p data-v-68be103e="">All online users</p>
</div>
<div data-v-68be103e="" class="searchfield"><input data-v-68be103e="" type="text" placeholder="..."></div>
<div data-v-68be103e="" class="search"><i data-v-68be103e="" class="fas fa-search"></i></div>
</div>
<div data-v-68be103e="" class="userlist dynamic-list">
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">introzen</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">TYLAR5</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">introzan</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Rodneynoubs</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">frandunc</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Karinstoxy</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">AlexisHal</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">HSKFairmietungDyeta</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">JeremyMew</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Robertgog</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">RodneyLig</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">root</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Davidfah</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Cathyneb</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Nekitbka</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Bobjex</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Melvinloazy</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">BruceQuogy</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Taghusod</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">zelebyaka</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">ultrasalvog</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
<div data-v-033c17a2="" data-v-68be103e="" class="user">
<div data-v-033c17a2="" class="userinfo">
<p data-v-033c17a2="" class="name">Bennierak</p>
<p data-v-033c17a2="" class="char">as </p>
</div>
<div data-v-033c17a2="" class="userdetails"><i data-v-033c17a2="" class="fas fa-chevron-right"></i></div>
</div>
</div>
</div>
</div>
似乎无法访问您的主目录。
您需要确保以上目录的权限允许用户postgres
进入目录(postgres
)。因此可能的解决方案是运行:
r-x
如果这样做没有帮助,请确保还要在路径中的所有其他目录上运行命令。