Re: Hybrid Hash/Nested Loop joins and caching results from subplans
От | David Rowley |
---|---|
Тема | Re: Hybrid Hash/Nested Loop joins and caching results from subplans |
Дата | |
Msg-id | CAApHDvo2PDnsx0eecBqVKxnNuFW1rFRKWv+EF+bqNPZEA21ezw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Hybrid Hash/Nested Loop joins and caching results from subplans (David Rowley <dgrowleyml@gmail.com>) |
Ответы |
RE: Hybrid Hash/Nested Loop joins and caching results from subplans
|
Список | pgsql-hackers |
On Thu, 1 Apr 2021 at 12:49, David Rowley <dgrowleyml@gmail.com> wrote: > I'm off to look at the buildfarm now. Well, it looks like the buildfarm didn't like the patch much. I had to revert the patch. It appears I overlooked some details in the EXPLAIN ANALYZE output when force_parallel_mode = regress is on. To make this work I had to change the EXPLAIN output so that it does not show the main process's cache Hit/Miss/Eviction details when there are zero misses. In the animals running force_parallel_mode = regress there was an additional line for the parallel worker containing the expected cache hits/misses/evictions as well as the one for the main process. The main process was not doing any work. I took inspiration from show_sort_info() which does not show the details for the main process when it did not help with the Sort. There was also an issue on florican [1] which appears to be due to that machine being 32-bit. I should have considered that when thinking of the cache eviction test. I originally tried to make the test as small as possible by lowering work_mem down to 64kB and only using enough rows to overflow that by a small amount. I think what's happening on florican is that due to all the pointer fields in the cache being 32-bits instead of 64-bits that more records fit into the cache and there are no evictions. I've scaled that test up a bit now to use 1200 rows instead of 800. The 32-bit machines also were reporting a different number of exact blocks in the bitmap heap scan. I've now just disabled bitmap scans for those tests. I've attached the updated patch. I'll let the CFbot grab this to ensure it's happy with it before I go looking to push it again. David [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=florican&dt=2021-04-01%2000%3A28%3A12
Вложения
В списке pgsql-hackers по дате отправления: