Re: Is this an oversight in reparameterizing Memoize path?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Is this an oversight in reparameterizing Memoize path? |
| Дата | |
| Msg-id | 1932256.1669994010@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Is this an oversight in reparameterizing Memoize path? (Richard Guo <guofenglinux@gmail.com>) |
| Список | pgsql-hackers |
Richard Guo <guofenglinux@gmail.com> writes:
> When reviewing other patch I noticed there might be an oversight for
> MemoizePath in reparameterize_path. In reparameterize_path we are
> supposed to increase the path's parameterization to required_outer.
> However, AFAICS for MemoizePath we just re-create the same path thus its
> parameterization does not get increased.
Yeah, that sure looks wrong. At minimum we should be recursively
fixing the subpath. (It looks like doing that and re-calling
create_memoize_path might be sufficient.)
According to [1] our code coverage for reparameterize_path is just
awful. MemoizePath in reparameterize_pathlist_by_child isn't
tested either ...
regards, tom lane
[1] https://coverage.postgresql.org/src/backend/optimizer/util/pathnode.c.gcov.html
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера