X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B651B3A55DC for ; Wed, 1 Dec 2004 15:07:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43777-07 for ; Wed, 1 Dec 2004 15:07:23 +0000 (GMT) Received: from bcbssc.com (mail1.bcbssc.com [207.19.198.69]) by svr1.postgresql.org (Postfix) with ESMTP id C389E3A553F for ; Wed, 1 Dec 2004 15:07:25 +0000 (GMT) Received: from ([207.19.198.73]) by mail1.bcbssc.com with ESMTP id KP-TRPV8.8315250; Wed, 01 Dec 2004 10:05:53 -0500 X-Internal-ID: 41AA90C9000044D5 Received: from companiongroup.com (207.19.198.73) by companion1.companiongroup.com (NPlex 2.0.108); 1 Dec 2004 10:06:13 -0500 Message-ID: Date: Wed, 1 Dec 2004 10:03:00 -0500 From: "CHRIS HOOVER" To: H J Sanders Cc: pgsql-admin@postgresql.org Subject: Re: copy X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/14 X-Sequence-Number: 15600 cat | sed '$//' > .new this should remove the last delimiter ------------------( Forwarded letter 1 follows )--------------------- Date: Wed, 1 Dec 2004 13:33:26 +0100 To: pgsql-admin@postgresql.org.comp From: H.J.Sanders[hjs]@rmax.nl.comp Sender: pgsql-admin-owner+m15591@postgresql.org.comp Subject: [ADMIN] copy Hello. We are moving a database from informix to Postgresql. To do so we do an unload from Informix and copy to postgresql. Informix unloads with a delimiter also after the last field in a record. This is no problem when doing a copy to Postgresql 7.2 You get a warning (to many fields) but the copy process continues. In 7.4 however the copy stops . Does anyone know how to proceed the copy or a fast way to remove the last character from the unload files. They are anyhow to big to handle with vi. Many thanks Henk Sanders ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)