Re: Directory/File Access Permissions for COPY and Generic File Access Functions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Brightwell, Adam" <adam(dot)brightwell(at)crunchydatasolutions(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Directory/File Access Permissions for COPY and Generic File Access Functions
Date: 2014-10-27 23:04:02
Message-ID: 544ECF62.1000708@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I think the way this should work is that if you create a DIRALIAS, then
the COPY command should refer to it by logical name, e.g.,

CREATE DIRALIAS dumpster AS '/tmp/trash';
COPY mytable TO dumpster;

If you squint a bit, this is the same as a tablespace. Maybe those two
concepts could be combined.

On the other hand, we already have file_fdw, which does something very
similar.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2014-10-27 23:06:20 Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT
Previous Message Andres Freund 2014-10-27 23:01:47 Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT