As the message tells you, Postres is not allowed to read the file.
If you want to fix that open the Task Manager, and click on "Show processes from all users". Look for the rows with the image name postgres.exe
(likely more than one). Remember the value in the column "User Name" (it's probably NETWORK SERVICE
). Open the properties of your file, add that user in the "Security" tab and grant read access to them.
Or use psql
's copy
as the message suggests.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…