Re: copy commands and linefeeds - Mailing list pgsql-novice

From Mija Lee
Subject Re: copy commands and linefeeds
Date
Msg-id 200709191820.l8JIJgka014224@brood2.pc.scharp.org
Whole thread Raw
In response to copy commands and linefeeds  (Mija Lee <mija@scharp.org>)
Responses Re: copy commands and linefeeds  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-novice
Oliver:

thanks so much for the help. Just for folks who might be looking on the list,
Oliver's suggestion works with 8.1 and above:

    alter table mytable add check (mycolumn !~ E'[\n\r]');

whereas this works on 8.0:

    alter table mytable add check (mycolumn !~ '\\r\\n');

Maybe everyone already knows this...

Mija


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Null records in pg_operator
Next
From: Oliver Elphick
Date:
Subject: Re: copy commands and linefeeds