Re: Let file_fdw access COPY FROM PROGRAM - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Let file_fdw access COPY FROM PROGRAM
Date
Msg-id CADkLM=fXRcCxVduC8ntLFkRLkqUkzN5vTiWMc_iEzBqdPkhT+w@mail.gmail.com
Whole thread Raw
In response to Re: Let file_fdw access COPY FROM PROGRAM  (Craig Ringer <craig.ringer@2ndquadrant.com>)
Responses Re: Let file_fdw access COPY FROM PROGRAM  (Craig Ringer <craig.ringer@2ndquadrant.com>)
List pgsql-hackers
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 6, 2016 at 6:53 PM, Craig Ringer <span
dir="ltr"><<ahref="mailto:craig.ringer@2ndquadrant.com" target="_blank">craig.ringer@2ndquadrant.com</a>></span>
wrote:<br/><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class=""><pdir="ltr"><p dir="ltr">On 7 Sep. 2016 02:14, "Corey Huinker" <<a href="mailto:corey.huinker@gmail.com"
target="_blank">corey.huinker@gmail.com</a>>wrote:<br /> ><p dir="ltr">> Having regression tests for this is
extremelyproblematic, because the program invoked would need to be an invokable command on any architecture supported
bypostgres. I'm pretty sure no such command exists.</span><p dir="ltr">Your best bet will be using the TAP framework.
Thereyou can use Perl logic.<p dir="ltr">I'm not sure where to put such a test though. It doesn't really make sense in
src/test/recovery/.<br /></blockquote></div><br /></div><div class="gmail_extra">And the TAP test would detect the
operatingsystem and know to create an FDW that has the PROGRAM value 'cat test_data.csv' on Unix, 'type test_data.csv'
onwindows, and 'type test_data.csv;1' on VMS? </div></div> 

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Optimization for lazy_scan_heap
Next
From: Craig Ringer
Date:
Subject: Re: Suggestions for first contribution?