简体   繁体   English

PostgreSQL - '无法截断文件“global/21607”:权限被拒绝'

[英]PostgreSQL - 'could not truncate file "global/21607": permission denied'

So I inherited a Windows system that runs a perl script that connects to a local PostgreSQL database (also on running on this Windows Server).所以我继承了一个运行 perl 脚本的 Windows 系统,该脚本连接到本地 PostgreSQL 数据库(也在此 Windows 服务器上运行)。 It moves data from one table to another.它将数据从一张表移动到另一张表。

I got the following error:我收到以下错误:

could not truncate file "global/21607": permission denied

Is it possible to find which table corresponds to "global/21607"?是否可以找到对应于“global/21607”的表?

Assuming you are on a recent version of PostgreSQL, you could try:假设您使用的是最新版本的 PostgreSQL,您可以尝试:

SELECT pg_filenode_relation(
          (SELECT oid FROM pg_tablespace WHERE spcname = 'pg_global'),
          21607
       );

Could it be that there is an anti-virus program running that locks the file?是不是有杀毒软件在运行,锁定了文件?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Postgres 错误:无法找到全局文件结尾/1262:权限被拒绝 - Postgres ERROR: could not seek to end of file global/1262: Permission denied PostgreSQL 服务器启动失败,无法创建锁定文件:权限被拒绝 - PostgreSQL server failed to start, could not create lock file: permission denied Postgresql 致命:无法创建锁定文件“/var/run/postgresql/.s.PGSQL.5432.lock”:权限被拒绝 - Postgresql FATAL: could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Permission denied 恐慌:无法打开控制文件“global/pg_control”:权限被拒绝 - PANIC: could not open control file "global/pg_control": Permission denied postgreSQL:权限被拒绝使用\\ i读取文件 - postgreSQL: permission denied reading a file using \i PostgreSQL:无法打开文件进行读取。 没有权限。 SQL 状态:42501 - PostgreSQL: Could not open file for reading. Permission denied. SQL state: 42501 将文本文件导入Postgresql权限被拒绝 - Import text file to postgresql permission denied 共享对象(.so)文件postgresql的权限被拒绝 - Permission Denied on shared object (.so) file postgresql 无法连接到 PostgreSQL 服务器:无法连接到服务器:权限被拒绝 - Unable to connect to PostgreSQL server: could not connect to server: Permission denied initdb:错误:无法创建目录“./PostgreSQL”:权限被拒绝 - initdb: error: could not create directory “./PostgreSQL”: Permission denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM