OSDN Git Service

Include example of table loading using the COPY command.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 4 Apr 1998 16:34:23 +0000 (16:34 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Sat, 4 Apr 1998 16:34:23 +0000 (16:34 +0000)
doc/src/sgml/query-ug.sgml

index a5fc346..abd496f 100644 (file)
@@ -104,7 +104,16 @@ INSERT INTO weather
 <Para>
      You can also use the <Command>copy</Command> command to perform load large
      amounts of data from flat (<Acronym>ASCII</Acronym>) files.
-</Para>
+This is usually faster because the data is read (or written) as a single atomic
+transaction directly to or from the target table. An example would be:
+
+<ProgramListing>
+COPY INTO weather FROM '/home/user/weather.txt'
+    USING DELIMITERS '|';
+</ProgramListing>
+
+where the path name for the source file must be available to the backend server
+machine, not just the client.
 
 <Sect1>
 <Title>Querying a Class</Title>