Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C36CD632468 for ; Sun, 22 Mar 2009 14:09:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 15878-05 for ; Sun, 22 Mar 2009 14:09:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 0BC026322F0 for ; Sun, 22 Mar 2009 14:09:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n2MH9bK0014031; Sun, 22 Mar 2009 13:09:37 -0400 (EDT) To: Peter Eisentraut , pgsql-admin@postgresql.org, Caleb Cushing , Bruce Momjian Subject: Re: pg_dump formatting In-reply-to: <11595.1237733040@sss.pgh.pa.us> References: <81bfc67a0903192135v1caa41abtd4618f3df0642834@mail.gmail.com> <15202.1237611487@sss.pgh.pa.us> <81bfc67a0903212126g7377d7e4i55736a663bccf0dc@mail.gmail.com> <200903221010.44907.peter_e@gmx.net> <11595.1237733040@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 22 Mar 2009 10:44:00 -0400" Date: Sun, 22 Mar 2009 13:09:36 -0400 Message-ID: <14030.1237741776@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL=0.011 X-Spam-Level: X-Archive-Number: 200903/215 X-Sequence-Number: 31715 I wrote: > Peter Eisentraut writes: >> Maybe wdiff will do what you want. > I don't think we'd consider making the kind of changes to the COPY > specification that would be needed to allow this sort of thing in COPY > mode. However, it'd be pretty trivial to put \n instead of space > between fields in the INSERT dump formats. I wonder whether that would > answer the need ... On further reflection I think Peter's suggestion is better. It's not hard to think of cases where a data-value-per-line format is *less* useful not more so for diff-ing, because you lose all sense that a table row is one logical unit. What the OP seems to be concerned about is insertion/modification/deletion of words within fairly long data fields. wdiff is ideal for that problem, while simply breaking at field boundaries wouldn't help all that much. regards, tom lane