On Wed, 16 Feb 2011 11:22:04 +0900
Itagaki Takahiro <itagaki.takahiro@gmail.com> wrote:
> Thanks comments. I've applied the COPY API patch.
When I've used COPY TO for testing file_fdw, I got wrong result.
# Actually csv_branches has only 10 rows.
postgres=# copy (select * from csv_branches) to '/home/hanada/DB/BINARY/branches.bin' with binary;
COPY 9187201950435737481
It would be because DR_copy's processed is not initialized in
CreateCopyDestReceiver(). Please see attached patch.
Regards,
--
Shigeru Hanada