error: could not open file "C:\Windows\Temp\ConsumerComplaints.csv" for reading: Permission denied code example
Example: permission denied postgres \copy csv command line
Give a permission to postgres user with chown command
like :
sudo chown postgres:postgres /home/username/Desktop/postgresData