Re: copy commands and linefeeds

From: Mija Lee <mija(at)scharp(dot)org>
To: olly(at)lfix(dot)co(dot)uk
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: copy commands and linefeeds
Date: 2007-09-19 18:19:43
Message-ID: 200709191820.l8JIJgka014224@brood2.pc.scharp.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Oliver Elphick 2007-09-19 21:11:45 Re: copy commands and linefeeds
Previous Message Tom Lane 2007-09-19 14:26:07 Re: Null records in pg_operator