Re: importing a messy text file - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: importing a messy text file
Date
Msg-id 20140430081349.GA5006@hermes.hilbert.loc
Whole thread Raw
In response to importing a messy text file  (Willy-Bas Loos <willybas@gmail.com>)
Responses Re: importing a messy text file
List 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


pgsql-general by date:

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