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 21F583A5601 for ; Wed, 1 Dec 2004 15:17:40 +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 47482-09 for ; Wed, 1 Dec 2004 15:17:34 +0000 (GMT) Received: from bcbssc.com (mail1.bcbssc.com [207.19.198.69]) by svr1.postgresql.org (Postfix) with ESMTP id 07D383A55DB for ; Wed, 1 Dec 2004 15:17:36 +0000 (GMT) Received: from ([207.19.198.73]) by mail1.bcbssc.com with ESMTP id KP-TRPV8.8316395; Wed, 01 Dec 2004 10:16:52 -0500 X-Internal-ID: 41AA90C900004549 Received: from companiongroup.com (207.19.198.73) by companion1.companiongroup.com (NPlex 2.0.108); 1 Dec 2004 10:16:26 -0500 Message-ID: Date: Wed, 1 Dec 2004 10:13:00 -0500 From: "CHRIS HOOVER" To: CHRIS.HOOVER@companiongroup.com Cc: pgsql-admin@postgresql.org, H J Sanders 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/15 X-Sequence-Number: 15601 fat fingered that one: cat < file> | sed 's/$//'> .new ------------------( Forwarded letter 1 follows )--------------------- Date: Wed, 1 Dec 2004 10:03:00 -0500 To: H.J.Sanders[hjs]@rmax.nl.comp Cc: pgsql-admin@postgresql.org.comp From: CHRIS.HOOVER@companiongroup.com.comp Sender: pgsql-admin-owner+m15600@postgresql.org.comp Subject: Re: [ADMIN] copy 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) ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match