mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Add a note warning that COPY BINARY is very datatype-specific.
Per a complaint from Gordon Shannon.
This commit is contained in:
parent
e3b3878a08
commit
a2367f89ff
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$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
|
||||
-->
|
||||
|
||||
@ -300,6 +300,10 @@ COPY <replaceable class="parameter">count</replaceable>
|
||||
somewhat faster than the normal text mode, but a binary-format
|
||||
file is less portable across machine architectures and
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user