Re: COPY TO - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: COPY TO
Date
Msg-id CAB7nPqSWfZG-DL7hR10zB6Q=JaYfAkV4QSVb3mtEASf+PfF5eg@mail.gmail.com
Whole thread Raw
In response to COPY TO  (mohsen soodkhah mohammadi <mohsensoodkhah@gmail.com>)
List pgsql-hackers
Have a look at

On Sat, Nov 23, 2013 at 3:48 PM, mohsen soodkhah mohammadi
<mohsensoodkhah@gmail.com> wrote:
> in copy.c is one function that its name is CopyOneRowTO.
> in this function have one foreach loop. in this loop first if have this
> condition: !cstate->binary
> what means this condition and when true this condition?
Have a look at CopyStateData at the top of
src/backend/commands/copy.c. This flag simply means that COPY uses the
binary format, that can be used with more or less this command:
COPY ... WITH [ FORMAT ] BINARY;
You can check as well the documentation for more details:
http://www.postgresql.org/docs/9.3/static/sql-copy.html

Regards,
-- 
Michael



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: UNION ALL on partitioned tables won't use indices.
Next
From: Oskari Saarenmaa
Date:
Subject: Re: Autoconf 2.69 update