Re: Updated COPY CSV patch

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Updated COPY CSV patch
Дата
Msg-id 200404131726.i3DHQlj19502@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Updated COPY CSV patch  ("Andrew Dunstan" <andrew@dunslane.net>)
Ответы Re: Updated COPY CSV patch  (Andrew Dunstan <andrew@dunslane.net>)
Re: Updated COPY CSV patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Andrew Dunstan wrote:
> >
> > I have two open issues.  First, CSV should support WITH OIDS, no?
> >
>
> Why on earth would you want to? OIDs only have emaning to postgresql.
> Dumping to/from CSVs should not be seen as an alternative to Postgresql's
> normal text or binary file formats. Rather, it is a way of exchanging
> data  with other programs that can't conveniently read or write those
> formats,  but can read/write CSVs. I expect the data to be making a one
> way trip.  OIDs make no sense to those other programs.
>
>
> For all those reasons I disallowed use of WITH OIDS for CSV mode.
>
> If you think that we should have it, it will be simple enough to do. It
> just strikes me as a very odd thing to do.

While doing OIDs seems atypical, it seems like a reasonable thing that
CSV should be able to do.  Basically, I see no reason to disable it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-patches по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Updated COPY CSV patch
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Updated COPY CSV patch