The file format used for COPY BINARY changed in
PostgreSQL 7.4. The new format consists
of a file header, zero or more tuples containing the row data, and
- a file trailer.
+ a file trailer. Headers and data are now in network byte order.
to be specified.
+To determine the appropriate binary format for the actual tuple data you
+should consult the
PostgreSQL source, in
+particular the *send> and *recv> functions for
+the data type (typically found in the src/backend/utils/adt
+directory). The
contrib/binarycopy module
+can also be used to create an appropriate format file.
+
+
If OIDs are included in the file, the OID field immediately follows the
field-count word. It is a normal field except that it's not included