Re: Add switches for DELIMITER and NULL in pg_dump COPY

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Add switches for DELIMITER and NULL in pg_dump COPY
Дата
Msg-id 20060308162955.GL14881@fetter.org
обсуждение исходный текст
Ответ на Re: Add switches for DELIMITER and NULL in pg_dump COPY  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add switches for DELIMITER and NULL in pg_dump COPY  (Greg Stark <gsstark@mit.edu>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Add switches for DELIMITER and NULL in pg_dump COPY
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Running out of disk space during query