Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
adaszko
on Feb 11, 2019
|
parent
|
context
|
favorite
| on:
PostgreSQL used fsync incorrectly for 20 years
Tomas Vondra goes over this in the talk. There's a rationale for that behavior: pulling out a USB stick out of the USB socket may have been what's triggered the fsync() failure. In that case, there's no way the kernel will be able to retry reliably.
pas
on Feb 11, 2019
[–]
Silent error ignoring is never a great API. Especially for a data integrity operation.
fsync in case of the USB disappearing should simply return an error and drop the dirty pages.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: