Re: Postgresql bulk fast loader - Mailing list pgsql-hackers

From Mark Volpe
Subject Re: Postgresql bulk fast loader
Date
Msg-id 3B4C56F1.5B46F924@epa.gov
Whole thread Raw
In response to Postgresql bulk fast loader  (Naomi Walker <nwalker@eldocomp.com>)
List pgsql-hackers
Avoid doing this with indexes on the table, though. I learned the hard way!

Mark

mlw wrote:
> 
> Naomi Walker wrote:
> >
> > Does postgresql have any sort of fast bulk loader?
> 
> It has a very cool SQL extension called COPY. Super fast.
> 
> Command:     COPY
> Description: Copies data between files and tables
> Syntax:
> COPY [ BINARY ] table [ WITH OIDS ]
>     FROM { 'filename' | stdin }
>     [ [USING] DELIMITERS 'delimiter' ]
>     [ WITH NULL AS 'null string' ]
> COPY [ BINARY ] table [ WITH OIDS ]
>     TO { 'filename' | stdout }
>     [ [USING] DELIMITERS 'delimiter' ]
>     [ WITH NULL AS 'null string' ]
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: AW: Possible feature?
Next
From: Jan Wieck
Date:
Subject: Re: varchar vs. text