Skip site navigation (1) Skip section navigation (2)

Re: Proposal: new pg_dump options --copy-delimiter and --copy-null

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: new pg_dump options --copy-delimiter and --copy-null
Date: 2006-01-27 03:41:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Thu, Jan 26, 2006 at 10:17:05PM -0500, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > I have seed database scripts quasi-generated from pg_dump which
> > include COPY statements, but the data is hard to edit (especially
> > cut & paste operations) when the COPY delimiter is some
> > non-visible character like \t.
> This seems like an awfully weak use-case for adding to pg_dump's
> already overly complicated feature set.

Those who don't use it will never see it.

> The difficulty of parsing COPY output is not simplified by making
> the delimiter variable --- more likely the reverse.

It's fairly straight-forward.

> Furthermore, it's quite unclear why you'd use pg_dump at all to
> generate a data file that you intend to feed to some other program.

In my case, it's about being copy/paste friendly.

> Seems to me that "psql -c 'COPY ...'" is a more likely front-end for
> such a process.

Actually, it's not.  I'm attaching my preliminary patch, as I see I
haven't explained it well enough.

David Fetter david(at)fetter(dot)org
phone: +1 415 235 3778

Remember to vote!

In response to


pgsql-hackers by date

Next:From: Matthew T. O'ConnorDate: 2006-01-27 03:48:11
Subject: Re: VACUUM Question
Previous:From: Tom LaneDate: 2006-01-27 03:17:05
Subject: Re: Proposal: new pg_dump options --copy-delimiter and --copy-null

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group