PostgreSQL 對 fsync() 的行為傷腦筋...
栏目: 数据库 · PostgreSQL · 发布时间: 5年前
内容简介:在「在
FOSDEM 2019
上的演講,討論 PostgreSQL
在確保 ACID
特性中的 Durability
時遇到 fsync()
的行為跟預想的不一樣 (主要是當 fsync()
失敗的行為):「 PostgreSQL vs. fsync
」。
在「 PostgreSQL vs. fsync. How is it possible that PostgreSQL used fsync incorrectly for 20 years, and what we'll do about it. 」這邊的 Q&A 形式的訪談有快速描述了短期的計畫與長期的想法:
The short-term solution is ensuring that we detect fsync errors reliably at least on sufficiently recent kernels (since 4.13). On older kernels we can’t do much better, unfortunately. The long-term solution is still being discussed in the community, but it’s hard to say how we could keep relying on buffered I/O in the future. So we may end up with direct I/O, but that’s a pretty significant change and is likely going to be a multi-year project.
在 MySQL
這邊則是以 O_DIRECT
為主的世界,受到的影響就小很多了...
以上所述就是小编给大家介绍的《PostgreSQL 對 fsync() 的行為傷腦筋...》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
HTTP Developer's Handbook
Chris Shiflett / Sams Publishing / 2003-3-29 / USD 39.99
The largest group with an unsatisfied demand for a good book on HTTP is the worldwide group of Web developers. A good book on HTTP can help new and old Web developers alike, as a thorough understandin......一起来看看 《HTTP Developer's Handbook》 这本书的介绍吧!