Re: WIP patch: add (PRE|POST)PROCESSOR options to COPY
Simon Riggs <simon@2ndquadrant.com>
From: Simon Riggs <simon@2ndQuadrant.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>, Tom Lane <tgl@sss.pgh.pa.us>, Craig Ringer <ringerc@ringerc.id.au>, pgsql-hackers@postgresql.org
Date: 2012-11-14T16:36:02Z
Lists: pgsql-hackers
On 14 November 2012 15:09, Fujii Masao <masao.fujii@gmail.com> wrote: > What about further extending the COPY IN syntax to the following? > > COPY table_name FROM 'progname [ option, ... ]' WITH ... > > I'd just like to execute > > COPY vmstat_table FROM 'vmstat' WITH ... If we go ahead with this, I think it needs additional keyword to indicate that we will execute the file rather than read from it. I don't think we should rely on whether the file is executable or not to determine how we should treat it. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services