Re: COPY command & binary format
От
Pujol Mathieu
Тема
Re: COPY command & binary format
Дата
Msg-id
af7d6c0e-39b8-549b-b87f-f74fdf3544bb@realfusio.com
Ответ на
COPY command & binary format (Nicolas Paris)
Список
Дерево обсуждения
COPY command & binary format Nicolas Paris <niparisco@gmail.com>
Re: [SPAM] COPY command & binary format Moreno Andreo <moreno.andreo@evolu-s.it>
Re: [SPAM] COPY command & binary format Nicolas Paris <niparisco@gmail.com>
Re: [SPAM] COPY command & binary format Cat <cat@zip.com.au>
Re: [SPAM] COPY command & binary format Moreno Andreo <moreno.andreo@evolu-s.it>
Re: [SPAM] COPY command & binary format Nicolas Paris <niparisco@gmail.com>
Re: [SPAM] COPY command & binary format Cat <cat@zip.com.au>
Re: [SPAM] COPY command & binary format Nicolas Paris <niparisco@gmail.com>
Re: COPY command & binary format Pujol Mathieu <mathieu.pujol@realfusio.com>
Re: COPY command & binary format Sameer Kumar <sameer.kumar@ashnik.com>
Re: COPY command & binary format Sameer Kumar <sameer.kumar@ashnik.com>
Le 10/05/2016 à 12:56, Nicolas Paris a écrit :
HiHello,What is the way to build a binary format (instead of a csv) ? Is there specification for this file ?
http://www.postgresql.org/docs/9.5/static/sql-copy.htmlCould I create such format from java ?I guess this would be far faster, and maybe safer than CSVsThanks by advance,
Making a driver that do what you want is not difficult. You will achieve better performances than than loading data from CSV, and you also will have better precision for floating values (there is no text conversion).
In the link you provide there is a description of the file format in section Binary Format.
Mathieu Pujol
В списке pgsql-general по дате отправления