Re: Add switches for DELIMITER and NULL in pg_dump COPY - Mailing list pgsql-hackers

From David Fetter
Subject Re: Add switches for DELIMITER and NULL in pg_dump COPY
Date
Msg-id 20060308162955.GL14881@fetter.org
Whole thread Raw
In response to Re: Add switches for DELIMITER and NULL in pg_dump COPY  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Add switches for DELIMITER and NULL in pg_dump COPY
List pgsql-hackers
On Wed, Mar 08, 2006 at 11:26:00AM -0500, Tom Lane wrote:
> David Fetter <david@fetter.org> writes:
> > On Wed, Mar 08, 2006 at 11:03:00AM -0500, Tom Lane wrote:
> >> Did anyone provide a convincing use case for this?
>
> > I've had one so far, and it was enough to cause me to make a
> > special patched version of pg_dump.  To get some idea of how
> > drastic that was, consider that I think it's generally bad
> > practice to compile from source because it can take you too far
> > off the "generally supported software" map.  The case I had was
> > making a database with a schema and initial data whose dump output
> > gets checked into a source code management system.
>
> So?  Don't tell me your SCMS can't handle tabs.

Not everybody's editor/mailer/whatever does this right, and it makes
things fragile.  Another way to do this is to change the delimter to a
printable character like '|', but that raises hackles, too.

Cheers,
D
--
David Fetter david@fetter.org http://fetter.org/
phone: +1 415 235 3778

Remember to vote!

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Add switches for DELIMITER and NULL in pg_dump COPY
Next
From: Stephen Frost
Date:
Subject: Re: Running out of disk space during query