Re: pg_dump usage - problems with restore due to the use of tab delimiters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rich Ryan" <rich(at)usedcars(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump usage - problems with restore due to the use of tab delimiters
Date: 2001-11-08 13:59:18
Message-ID: 16554.1005227958@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Rich Ryan" <rich(at)usedcars(dot)com> writes:
> Lots of my records have linebreaks in them (the ^M character), but only a
> few of them with a certain pattern of linebreaks seem to confuse
> pgsql.

*All* of them are wrong. The ones that aren't causing an error are the
ones where the last field is a textual field --- and what's happening
there is that the ^M is being taken as a data character, which you
won't want.

Bottom line: do not allow Windoze to get its hands on a pg_dump script.
LF->CR/LF translation is not something you want to happen to that file.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-11-08 14:04:17 Re: OID's as Primary Keys
Previous Message Jochem van Dieten 2001-11-08 13:51:48 Re: Storing a tree