Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 933B24759F2 for ; Fri, 25 Oct 2002 10:15:48 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id EDEE4474E5C for ; Fri, 25 Oct 2002 10:15:47 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 1855Fg-0003Vf-00 for ; Fri, 25 Oct 2002 10:15:52 -0400 Date: Fri, 25 Oct 2002 10:15:52 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: line length line break issue Message-ID: <20021025101552.A13384@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <200210221800.57859.iddwb@moroni.pp.asu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200210221800.57859.iddwb@moroni.pp.asu.edu>; from iddwb@moroni.pp.asu.edu on Tue, Oct 22, 2002 at 06:00:57PM -0700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/250 X-Sequence-Number: 6108 On Tue, Oct 22, 2002 at 06:00:57PM -0700, David Bear wrote: > \pset recordsep "^" > (and other chars along with the caret) but it seems the postgress is not > using that character. My thinking was to strip all cr/lf, the replace the > caret with a newline. Then we could bring the data into something like > excel. recordsep is for the character _between records_. But the cr/lf you have in the data is inside your records. What you probably want to do is to experiment with the regular expressions facilities of PostgreSQL, and use the text-manipulation functions to get rid of the cr/lf. Or, you could edit the dump file using, say, sed, and then import the data again. Obviously, you also need to fix the PHP. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110