Re: COPY planning

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: COPY planning
Дата
Msg-id 20150922125135.GN3685@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: COPY planning  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: COPY planning  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > I noticed that COPY calls planner() (this was introduced in 85188ab88).
> > I think it should be calling pg_plan_query() instead.
>
> +1 --- AFAICS, this is the *only* place that is going directly to
> planner() without going through pg_plan_query(); other utility
> functions such as CREATE TABLE AS do the latter.
>
> As far as the patch goes, do copy.c's #include's need adjustment?
> I'm wondering if optimizer/planner.h could be removed, in particular.

BeginCopyFrom still uses expression_planner(), at least..

Thanks!

Stephen

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

Предыдущее
От: Gavin Flower
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Use gender-neutral language in documentation
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Rework the way multixact truncations work