Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA08109; Thu, 10 Jun 93 12:02:15 -0700
Message-Id: <9306101902.AA08109@postgres.Berkeley.EDU>
From: John Peter Lee <jlee@cs.ulowell.edu>
Subject: confusion with copy command
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
To: postgres@postgres.berkeley.edu (postgres)
Date: Thu, 10 Jun 1993 15:03:22 -0400 (EDT)
X-Mailer: ELM [version 2.4 PL20]
Content-Type: text
Content-Length: 968       

Hi -

	I would like to store an ASCII data file as a Postgres
	database, and would like to use the copy command from
	libpq. I am having trouble understanding the manual.

	I want to copy from an external datafile into a postgres class.
	Is this the proper command:

	copy pg_classname from file.ascii

	- does the 'to' and 'from' arguments apply to the class, or file ?

	Secondly, I do not understand what the format description means
	at the bottom of the man page. Does it apply to all files, or
	only to binary files ??? What does totalength refer to  - the
	number of uint32's in the instance ?

	thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JP Lee                 Institute for Visualization and Perception Research	
jlee@cs.ulowell.edu                  University of Massachusetts at Lowell 
(508) 934-3384				1 University Ave. Lowell, MA 01854

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
