Re: Importing Mangled SQL File via psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: APseudoUtopia <apseudoutopia(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Importing Mangled SQL File via psql
Date: 2009-08-25 23:03:23
Message-ID: 3649.1251241403@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

APseudoUtopia <apseudoutopia(at)gmail(dot)com> writes:
> The file does contain quite a bit of \r\n's in them for newlines
> inside VARCHAR and TEXT columns, but I thought they would be converted
> into actual newlines as I import it, not the actual character strings
> "\n" and "\r".

If they're inside quoted literals or COPY data, yes; but it looks like
you have one instance that isn't.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Szabolcs Márton 2009-08-25 23:13:48 cluster replication over only http protocol
Previous Message Lew 2009-08-25 22:29:34 Re: ETL software and training