Commit a2367f89 authored by Tom Lane's avatar Tom Lane

Add a note warning that COPY BINARY is very datatype-specific.

Per a complaint from Gordon Shannon.
parent e3b3878a
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.86 2009/07/25 00:07:10 adunstan Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.87 2009/09/05 23:58:01 tgl Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -300,6 +300,10 @@ COPY <replaceable class="parameter">count</replaceable> ...@@ -300,6 +300,10 @@ COPY <replaceable class="parameter">count</replaceable>
somewhat faster than the normal text mode, but a binary-format somewhat faster than the normal text mode, but a binary-format
file is less portable across machine architectures and file is less portable across machine architectures and
<productname>PostgreSQL</productname> versions. <productname>PostgreSQL</productname> versions.
Also, the binary format is very data type specific; for example
it will not work to output binary data from a <type>smallint</> column
and read it into an <type>integer</> column, even though that would work
fine in text format.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment