Re: copy

From: Geoffrey <esoteric(at)3times25(dot)net>
To: "H(dot)J(dot) Sanders" <hjs(at)rmax(dot)nl>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: copy
Date: 2004-12-01 13:01:19
Message-ID: 41ADC09F.4020002@3times25.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

H.J. Sanders wrote:
> 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.

sed 's/.$//' file > newfile

Always test before using, it's off the top of my head..

--
Until later, Geoffrey

In response to

  • copy at 2004-12-01 12:33:26 from H.J. Sanders

Browse pgsql-admin by date

  From Date Subject
Next Message Vishal Kashyap @ [SaiHertz] 2004-12-01 13:02:34 Re: Linux PostgreSQL to Windows PostgreSQL
Previous Message Vishal Kashyap @ [SaiHertz] 2004-12-01 12:53:18 Re: Export/Import