"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> But in our 7.4.x, there is code like this:
> sync();
> if (IsUnderPostmaster)
> sleep(2);
> sync();
I'm not claiming that that code is correct; it is in fact just as broken
as the traditional custom. You'll notice we don't have it anymore ;-)
> Why wasting 2 seconds is enough to save the data?
It's not. The entire custom is and always has been bogus.
regards, tom lane