Give a permission to postgres user with chown command like : sudo chown postgres:postgres /home/username/Desktop/postgresData