Re: Expression errors with "FOR UPDATE" and postgres_fdw with partitionwise join enabled.
В списке pgsql-hackers по дате отправления:
| От | Etsuro Fujita |
|---|---|
| Тема | Re: Expression errors with "FOR UPDATE" and postgres_fdw with partitionwise join enabled. |
| Дата | |
| Msg-id | 5B619D23.4010000@lab.ntt.co.jp обсуждение |
| Ответ на | Re: Expression errors with "FOR UPDATE" and postgres_fdw with partitionwise join enabled. (Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>) |
| Ответы |
Re: Expression errors with "FOR UPDATE" and postgres_fdw withpartition wise join enabled.
|
| Список | pgsql-hackers |
(2018/07/26 21:11), Etsuro Fujita wrote: > (2018/07/26 5:27), Robert Haas wrote: >> Well, I could have the wrong idea here, but I tend to think allowing >> for ConvertRowTypeExpr elsewhere won't be that bad. > > I still don't like that because in my opinion, changes needed for that > would not be localized, and that would make code complicated more than > necessary. > > As I mentioned in a previous email, another idea to avoid that would be > to adjust tlists for children at path creation time, not plan creation > time; we could adjust the tlist for each of subpaths accumulated for an > Append/MergeAppend path in add_paths_to_append_rel called from > set_append_rel_pathlist or generate_partitionwise_join_paths, with > create_projection_path adding ConvertRowTypeExpr. It seems unlikely that > performing create_projection_path to such a subpath would change its > property of being the cheapest, so it would be safe to adjust the tlists > that way. This would not require making create_plan complicated anymore. > I might be missing something, though. I updated the patch that way. Updated patch attached. I fixed a bug and did a bit of cleanups as well. Best regards, Etsuro Fujita
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера