Re: Patch for removng unused targets

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch for removng unused targets
Дата
Msg-id 14993.1354552292@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Patch for removng unused targets  ("Etsuro Fujita" <fujita.etsuro@lab.ntt.co.jp>)
Ответы Re: Patch for removng unused targets
Re: Patch for removng unused targets
Список pgsql-hackers
"Etsuro Fujita" <fujita.etsuro@lab.ntt.co.jp> writes:
> Sorry for the delay.  I've reviewed the patch.  It was applied
> successfully, and it worked well for tests I did including the example
> you showed.  I think it's worth the work, but I'm not sure you go
> about it in the right way.  (I feel the patch decreases code
> readability more than it gives an advantage.)

One thought here is that I don't particularly like adding a field like
"resorderbyonly" to TargetEntry in the first place.  That makes this
optimization the business of the parser, which it should not be; and
furthermore makes it incumbent on the rewriter, as well as anything else
that manipulates parsetrees, to maintain the flag correctly while
rearranging queries.  It would be better if this were strictly the
business of the planner.

But having said that, I'm wondering (without having read the patch)
why you need anything more than the existing "resjunk" field.
        regards, tom lane



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

Предыдущее
От: Markus Wanner
Дата:
Сообщение: Re: Review: Extra Daemons / bgworker
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Materialized views WIP patch