COPY BINARY documentation

Поиск
Список
Период
Сортировка
Искать

COPY BINARY documentation

От:
Lee Kindness <lkindness@csl.co.uk>
Дата:
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.
      
  
      

Re: COPY BINARY documentation

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:

Patch applied.  Thanks.

---------------------------------------------------------------------------


Lee Kindness wrote:
Content-Description: message body text

> 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.
>       
>   
>       

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
FAQ