pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Bear <iddwb@moroni.pp.asu.edu>
To: pgsql-admin@postgresql.org
Subject: line length line break issue
Date: Tue, 22 Oct 2002 18:00:57 -0700
Message-ID: <200210221800.57859.iddwb@moroni.pp.asu.edu> (raw)

we had someone make a php app that was a form fill-in type of questionaire.   
They stored all data into postgres as vchar type columns.  Now the problem we 
have is that 
1) rows retrieved from select include cr/lf chars from the form, makeing a row 
multi lines long
2) rows are so long that their not useable and we can find a useable delimeter 

I've tried using 
\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.

The problem is the recordsep doesn't seem to work.  Any thoughts?
-- 
David Bear
College of Public Programs/ASU



view thread (2+ messages)  latest in thread

Message-ID: <200210221800.57859.iddwb@moroni.pp.asu.edu>
Permalink:  ../200210221800.57859.iddwb@moroni.pp.asu.edu/
Also on:    postgresql.org/message-id/200210221800.57859.iddwb@moroni.pp.asu.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: iddwb@moroni.pp.asu.edu
  Subject: Re: line length line break issue
  In-Reply-To: <200210221800.57859.iddwb@moroni.pp.asu.edu>
  References: <200210221800.57859.iddwb@moroni.pp.asu.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox