Re: CommitFest 2011-01 as of 2011-02-04

花田 茂 <hanada@metrosystems.co.jp>

From: Shigeru HANADA <hanada@metrosystems.co.jp>
To: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>, Robert Haas <robertmhaas@gmail.com>, pgsql-hackers@postgresql.org
Date: 2011-02-18T04:15:29Z
Lists: pgsql-hackers

Attachments

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