Re: BUG #18588: Cannot force/let database use parallel execution in simple case.

Andy Fan <zhihuifan1213@163.com>

From: Andy Fan <zhihuifan1213@163.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Maxim Boguk <maxim.boguk@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2024-08-23T01:47:45Z
Lists: pgsql-bugs

> .. I think Maxim might need to try tweaking effective_cache_size. ..

I'm right now doing some troubleshooting for Bitmap Index Scan vs Index
Scan and effective_cache_size caught my attention. I want to take this
chance to confirm my understanding about this parameter.

1. By design, effective_cache_size should not less than shared_buffer
since file-system cache should be considered as well.
2. Mackert and Lohman's algorithm in index_pages_fetched looks doesn't
consider the number of concurrency? so if we have N sessions to access N
different small relations, but sum_of_n_relations is larger than
effective_cache_size, would the index_pages_fetched figure out a much
smaller value than the fact?

-- 
Best Regards
Andy Fan