Re: importing a messy text file

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: importing a messy text file
Date: 2014-04-30 08:13:49
Message-ID: 20140430081349.GA5006@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Apr 30, 2014 at 10:07:09AM +0200, Willy-Bas Loos wrote:

> it would probably not be
> feasible to manually add tabs for every record that misses one, although i
> don't know how many it would be.

Why not a) let a script do that, b) remove tabs from the end
of lines as needed ?

All in all it sounds like you want to use a scripting
language to sanitize the file.

Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alberto Cabello Sánchez 2014-04-30 08:13:52 Re: importing a messy text file
Previous Message Rory Campbell-Lange 2014-04-30 08:08:01 Re: Security Issues: Allowing Clients to Execute SQL in the Backend.