Re: CopyFrom() has become way too complicated

Поиск
Список
Период
Сортировка
От Corey Huinker
Тема Re: CopyFrom() has become way too complicated
Дата
Msg-id CADkLM=evWUdD7G=_demV1JgBuYUYkmsszjtw6c0Oq0_hSJqV=g@mail.gmail.com
обсуждение исходный текст
Ответ на CopyFrom() has become way too complicated  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
I think the code needs to be split up so that CopyFrom() in the loop
body calls CopyFromOneTuple(), which then also splits out the tuple
routing into its own CopyFromOneTupleRoute() function (that's 200 LOC on
its own...). I suspect it'd also be good to refactor the
partition-change code out into its own function.

+1
I had a hard time with this when doing my copy_srf() misadventure. 

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

Предыдущее
От: James Coleman
Дата:
Сообщение: Re: Error handling expectations
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Index-only scan returns incorrect results when using a composite GIST index with a gist_trgm_ops column.