Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 6CD616322FD for ; Sun, 22 Mar 2009 11:44:10 -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 85945-02 for ; Sun, 22 Mar 2009 11:43:59 -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 4BE56632D8A for ; Sun, 22 Mar 2009 11:44:06 -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 n2MEi00E011596; Sun, 22 Mar 2009 10:44:00 -0400 (EDT) To: Peter Eisentraut cc: pgsql-admin@postgresql.org, Caleb Cushing , Bruce Momjian Subject: Re: pg_dump formatting In-reply-to: <200903221010.44907.peter_e@gmx.net> References: <81bfc67a0903192135v1caa41abtd4618f3df0642834@mail.gmail.com> <15202.1237611487@sss.pgh.pa.us> <81bfc67a0903212126g7377d7e4i55736a663bccf0dc@mail.gmail.com> <200903221010.44907.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Sun, 22 Mar 2009 10:10:43 +0200" Date: Sun, 22 Mar 2009 10:44:00 -0400 Message-ID: <11595.1237733040@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/214 X-Sequence-Number: 31714 Peter Eisentraut writes: > On Sunday 22 March 2009 06:26:02 Caleb Cushing wrote: >> COPY blarg (blah, bleh, blerg) FROM stdin; >> 1 random character data >> djfa;djjf;sdjl;afkjeoiuoiejk,cxjueiojiojeef98hkjdyf98y92hvniay8syfkdnf38932 >> hrhf9e83uifnskjjjjjj3h9r83hhjnnn2iyfhkjsndfi7y938hnksu879hf089h3n299ssdjfh92 >> 3 >> >> the above in pg_dump is one line >> >> it'd be easier to diff if it were say on 3, or best yet with the >> exception of say, binary data or things that can't be wrapped, have >> the data (for like text records) wrapped at 79 characters or maybe 78 >> with \ at the end or something... > 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 ... regards, tom lane