Re: Text data type doesn't accept newlines? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Text data type doesn't accept newlines?
Date
Msg-id Pine.LNX.4.30.0106051901470.900-100000@peter.localdomain
Whole thread Raw
In response to Text data type doesn't accept newlines?  (Randall Perry <rgp@systame.com>)
List pgsql-general
Randall Perry writes:

> I have a logging database that logs errors. The error messages contain
> newlines. Pgsql doesn't accept them on insert in a text data field.

I don't think so.

peter=# create table test1 (a text);
CREATE
peter=# insert into test1 values ('with
peter'# newline');
INSERT 145809 1
peter=# select * from test1;
      a
--------------
 with
newline
(1 row)

Please make a more detailed report if you have a problem.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: Randall Perry
Date:
Subject: Re: Text data type doesn't accept newlines?
Next
From: Peter Eisentraut
Date:
Subject: Re: XML question