Re: COPY failure on directory I own

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY failure on directory I own
Date: 2011-08-31 00:44:35
Message-ID: 4E5D83F3.7030006@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 31/08/2011 1:34 AM, Rich Shepard wrote:
> On Tue, 30 Aug 2011, Scott Mead wrote:
>
>> In this case, it's not about YOU and your permissions, it's about the
>> server. The COPY command writes data as the 'postgres' operating system
>> user (or whichever user owns the postgres backend process).
>
> Scott,
>
> Ah so. User 'postgres' is in the same group ('users') as I am, so I need
> to change the perms on the data directory to 775 to give postgres write
> access.

Yeah, or use the client/server copy protocol via psql's \copy command.

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2011-08-31 01:16:22 Re: IDLE queries taking up space
Previous Message Craig Ringer 2011-08-31 00:42:17 Re: duplicate key violates unique on a nextval() field