Re: merging 2 dumps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nabil Sayegh <postgresql(at)e-trolley(dot)de>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: merging 2 dumps
Date: 2003-08-01 15:01:35
Message-ID: 8103.1059750095@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Nabil Sayegh <postgresql(at)e-trolley(dot)de> writes:
> I need to merge 2 versions of a database manually via pg_dump.
> I'd like to diff them to see the changes.
> Unfortunately the data contain newlines.
> Is it possible to quote them, so that each row will be only 1 row in the
> dumps ?
> \n or something like that

What PG version are you using?? All recent releases *do* dump newline
as \n, for example

COPY fooey (f1) FROM stdin;
hi
hi\nthere
ho
\.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Nabil Sayegh 2003-08-01 15:13:34 Re: merging 2 dumps
Previous Message Nabil Sayegh 2003-08-01 14:56:34 Re: merging 2 dumps