Dmitry Panov <dmitry@xxxxxxxxxxx> writes: > Yes, but if the server has crashed earlier the script won't be called > and if the filesystem can't be recovered the changes will be lost. My > point is the server should write into both (or more) files at the same > time. As for that, I agree with the other person: a RAID array does that just fine, and with much higher performance than we could muster. regards, tom lane