Re: alter role - superuser - permissions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike <1100100(at)gmail(dot)com>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: alter role - superuser - permissions
Date: 2016-09-04 15:27:55
Message-ID: 5789.1473002875@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Mike <1100100(at)gmail(dot)com> writes:
> But, when I try the copy command, the following error occurs:

> mmm=# copy accounts
> (employ_last,employ_first,service,website,userid,password) from
> '/home/mmm/Documents/accounts-services.csv';
> ERROR: could not open file
> "/home/mmm/Documents/accounts-services.csv" for reading: Permission
> denied

COPY executes in the server process, so this is likely to fail unless
/home/mmm/Documents/accounts-services.csv is world-readable. You
probably want to use psql's \copy command instead.

There's some discussion going on right now about adding a HINT to
this error message to help out people in your situation. If you
feel like bringing a novice's-eye viewpoint to the discussion, it's
over in pgsql-hackers at

https://www.postgresql.org/message-id/flat/CAMsr+YEqtD97qPEzQDqrCt5QiqPbWP_X4hmvy2pQzWC0GWiyPA(at)mail(dot)gmail(dot)com

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mike 2016-09-04 22:27:16 Re: alter role - superuser - permissions
Previous Message Mike 2016-09-04 15:10:29 Re: alter role - superuser - permissions