News for hackers. Stuff that matters.
Re:PostgreSQL used fsync incorrectly for 20 years by yyx on Sunday February 10, 2019 @12:44AM (#19126535)
https://utcc.utoronto.ca/~cks/space/blog/unix/TheLegendOfSyn...

  people were told 'do several sync commands, typing each by hand'

  But this mutated to just 'sync three times', so of course people started writing 'sync; sync; sync'
Re:PostgreSQL used fsync incorrectly for 20 years by sgt on Sunday February 10, 2019 @02:13AM (#19126708)
I still type sync (just once) before I reboot. Just a habit.
Re:PostgreSQL used fsync incorrectly for 20 years by noir_lord on Sunday February 10, 2019 @03:56AM (#19126963)
The last thing I do before I leave my work desktop for the day is

    ./eod.sh && sync && sync
20+ year old habits die hard.
Re:PostgreSQL used fsync incorrectly for 20 years by slavik81 on Sunday February 10, 2019 @03:40AM (#19126919)
The only machine I ever developed on that needed a sync before reboot was an ancient SPARC workstation.

I forgot to sync almost every time, but it would always boot after a fsck.

Re:PostgreSQL used fsync incorrectly for 20 years by beefhash on Sunday February 10, 2019 @02:54AM (#19126799)
I always get some kind of error message from dmraid about having been unable to stop the RAID array on shutdown/reboot. I thus manually do a sync(1) in hopes that the data survives. Hasn't failed me thus far, at least.