Re: COPY to question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY to question
Date: 2017-01-17 18:28:55
Message-ID: 30889.1484677735@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rich Shepard <rshepard(at)appl-ecosys(dot)com> writes:
> Running -9.6.1. I have a database created and owned by me, but cannot copy
> a table to my home directory. Postgres tells me it cannot write to that
> directory. The only way to copy tables to files is by doing so as the
> superuser (postgres).

> Why is this, and can I change something so I, as a user, can copy tables
> directly to ~/?

Use psql's \copy instead.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2017-01-17 18:30:14 Re: COPY to question [ANSWERED]
Previous Message Rich Shepard 2017-01-17 18:23:28 COPY to question