I couldn't find any documentation or anything answering my question anywhere. Do rdbms like postgres or mysql use the c libraries to write data just as ordinary files?
Or do they just try to get a hold of the raw disk memory space address locations and write to it? Surely not, because the linux kernel doesn't allow that. Surely kernels context switching and memory ownership models slow down DB transactions.
I'm curious what this looks like under the hood.