X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 97299D1CA28 for ; Thu, 14 Aug 2003 20:50:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 77796-10 for ; Thu, 14 Aug 2003 17:49:57 -0300 (ADT) Received: from THOR.goeci.com (thor.goeci.com [66.28.220.99]) by svr1.postgresql.org (Postfix) with ESMTP id 9328BD1F7E0 for ; Thu, 14 Aug 2003 17:33:18 -0300 (ADT) Received: by THOR.goeci.com with Internet Mail Service (5.5.2653.19) id ; Thu, 14 Aug 2003 16:33:20 -0400 Message-ID: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AA@THOR.goeci.com> From: Murthy Kambhampaty To: pgsql-general@postgresql.org Subject: Re: importing db as text files Date: Thu, 14 Aug 2003 16:33:16 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/702 X-Sequence-Number: 47119 On Wednesday, August 13, 2003 17:59, Gregory S. Williamson [mailto:gsw@globexplorer.com] wrote: > >I tend to use perl to preprocess dumps (in our case from >Informix). It tends to work much faster than shell scripts >(although your mileage may vary). I have to fix missing >numeric values (if the column allows nulls why can't the copy >command accept an empty field, I wonder?) Have you tried "copy from stdin with null as '';" or am I missing something? See http://techdocs.postgresql.org/techdocs/usingcopy.php or the postgresql documentation for more info. Cheers, Murthy