Re: Review : Add hooks for pre- and post-processor executables for COPY and \copy

Heikki Linnakangas <hlinnakangas@vmware.com>

From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Amit Kapila <amit.kapila@huawei.com>
Cc: 'Etsuro Fujita' <fujita.etsuro@lab.ntt.co.jp>, 'pgsql-hackers' <pgsql-hackers@postgresql.org>
Date: 2013-02-27T13:00:04Z
Lists: pgsql-hackers
On 27.02.2013 08:32, Amit Kapila wrote:
> If there is semicolon at end, it takes it into account for creating
> filename.
> \copy foo to c:\data\foo.out;
> This problem was fixed in previous patch, but I think handling of quotes has
> changed this behavior.

This is existing behavior, that creates a file called "foo.out;" on 
previous psql versions as well. I agree it's almost certainly not what 
the user intended, but that's a separate patch.

- Heikki