Re: Directory/File Access Permissions for COPY and Generic File Access Functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Directory/File Access Permissions for COPY and Generic File Access Functions
Date
Msg-id 544ECF62.1000708@gmx.net
Whole thread Raw
In response to Re: Directory/File Access Permissions for COPY and Generic File Access Functions  ("Brightwell, Adam" <adam.brightwell@crunchydatasolutions.com>)
Responses Re: Directory/File Access Permissions for COPY and Generic File Access Functions
List 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.




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT
Next
From: Andrew Dunstan
Date:
Subject: Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT