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). 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"?
Assuming you are on a recent version of PostgreSQL, you could try:
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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.