COPY BINARY documentation

Поиск
Список
Период
Сортировка
Искать
От
Lee Kindness
Тема
COPY BINARY documentation
Дата
Msg-id
16175.44581.402536.716056@kelvin.csl.co.uk
Список
Дерево обсуждения
COPY BINARY documentation Lee Kindness <lkindness@csl.co.uk>
Re: COPY BINARY documentation Bruce Momjian <pgman@candle.pha.pa.us>
The attached patch adds some clarification to the documentation of the
binary format read/created by COPY BINARY. It also mentions the
contrib/binarycopy module.

Regards, Lee Kindness.

Index: doc/src/sgml/ref/copy.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql-server/doc/src/sgml/ref/copy.sgml,v
retrieving revision 1.46
diff -c -r1.46 copy.sgml
*** doc/src/sgml/ref/copy.sgml	9 May 2003 21:19:48 -0000	1.46
--- doc/src/sgml/ref/copy.sgml	5 Aug 2003 13:09:19 -0000
***************
*** 380,386 ****
      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.
     
  
     
--- 380,386 ----
      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. Headers and data are now in network byte order.
     
  
     
***************
*** 481,486 ****
--- 481,495 ----
  assumed to be in binary format (format code one).  It is anticipated that a
  future extension may add a header field that allows per-column format codes
  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.
      
  
      
В списке pgsql-patches по дате отправления
От: Lee Kindness
Дата:
Сообщение: contrib/binarycopy
От: Serguei A. Mokhov
Дата:
FAQ