Re: file_fdw vs relative paths - Mailing list pgsql-hackers

From Li Japin
Subject Re: file_fdw vs relative paths
Date
Msg-id 70C4CA98-1C0D-426B-9814-92569A5331B6@hotmail.com
Whole thread Raw
In response to Re: file_fdw vs relative paths  (Bruce Momjian <bruce@momjian.us>)
Responses Re: file_fdw vs relative paths
List pgsql-hackers

On Aug 25, 2020, at 8:26 AM, Bruce Momjian <bruce@momjian.us> wrote:

Yes, I tested back to 9.5 too:

CREATE EXTENSION file_fdw;
CREATE SERVER pgconf FOREIGN DATA WRAPPER file_fdw;
CREATE FOREIGN TABLE pgconf (line TEXT) SERVER pgconf OPTIONS ( filename
'postgresql.conf', format 'text', delimiter E'\x7f' );
SELECT * FROM pgconf;
 # -----------------------------
 # PostgreSQL configuration file
 # -----------------------------
 #
 # This file consists of lines of the form:

The file_fdw extension was introduced by commit 7c5d0ae7078456bfeedb2103c45b9a32285c2631,
and I tested it supports relative paths.  This is a doc bug.

--
Japin Li

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal - function string_to_table
Next
From: Pavel Stehule
Date:
Subject: Re: Row estimates for empty tables