Re: COPY enhancements

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: COPY enhancements
Дата
Msg-id 603c8f070910080859mc4cc2fp7998d3d6c7d5c6c7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: COPY enhancements  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: COPY enhancements
Re: COPY enhancements
Re: COPY enhancements
Список pgsql-hackers
On Thu, Oct 8, 2009 at 11:50 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Another possible approach, which isn't perfect either, is the idea of
>> allowing COPY to generate a single column of output of type text[].
>> That greatly reduces the number of possible error cases, and at least
>> gets the data into the DB where you can hack on it.  But it's still
>> going to be painful for some use cases.
>
> Yeah, that connects to the previous discussion about refactoring COPY
> into a series of steps that the user can control.
>
> Ultimately, there's always going to be a tradeoff between speed and
> flexibility.  It may be that we should just say "if you want to import
> dirty data, it's gonna cost ya" and not worry about the speed penalty
> of subtransaction-per-row.  But that still leaves us with the 2^32
> limit.  I wonder whether we could break down COPY into sub-sub
> transactions to work around that...

How would that work?  Don't you still need to increment the command counter?

...Robert


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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Writeable CTEs and side effects
Следующее
От: Dan Colish
Дата:
Сообщение: one line comment style