作者:缅追逐暗夜的流星 | 来源:互联网 | 2023-09-05 09:55
作者
digoal
日期
2021-03-17
标签
PostgreSQL , analyze , prefetch
背景
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=c6fc50cb40285141fad401321ae21becbaea1c59
```
Use pre-fetching for ANALYZE
author Stephen Frost sfrost@snowman.net
Tue, 16 Mar 2021 18:46:48 +0000 (14:46 -0400)
committer Stephen Frost sfrost@snowman.net
Tue, 16 Mar 2021 18:46:48 +0000 (14:46 -0400)
commit c6fc50cb40285141fad401321ae21becbaea1c59
tree bd46171aa6e6880f86fc8f977891bdff933149d7 tree
parent 94d13d474dc61800e8a17cc1959c55815b050ecd commit | diff
Use pre-fetching for ANALYZE
When we have posix_fadvise() available, we can improve the performance
of an ANALYZE by quite a bit by using it to inform the kernel of the
blocks that we're going to be asking for. Similar to bitmap index
scans, the number of buffers pre-fetched is based off of the
maintenance_io_concurrency setting (for the particular tablespace or,
if not set, globally, via get_tablespace_maintenance_io_concurrency()).
Reviewed-By: Heikki Linnakangas, Tomas Vondra
Discussion: https://www.postgresql.org/message-id/VI1PR0701MB69603A433348EDCF783C6ECBF6EF0%40VI1PR0701MB6960.eurprd07.prod.outlook.com
```
PostgreSQL 许愿链接
您的愿望将传达给PG kernel hacker、数据库厂商等, 帮助提高数据库产品质量和功能, 说不定下一个PG版本就有您提出的功能点. 针对非常好的提议,奖励限量版PG文化衫、纪念品、贴纸、PG热门书籍等,奖品丰富,快来许愿。开不开森.
9.9元购买3个月阿里云RDS PostgreSQL实例
PostgreSQL 解决方案集合
德哥 / digoal's github - 公益是一辈子的事.
![f7ad92eeba24523fd47a6e1a0e691b59 digoal's wechat](https://img6.php1.cn/3cdc5/9a17/42f/d487980cd3c5b44f.jpeg)