[英]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.