Greg Smith <greg(at)2ndQuadrant(dot)com> writes:
> One thing I am trying to avoid here is needing to check the system clock
> after every buffer write.
On machines where gettimeofday is slow (and last I heard there were
still lots of them), any such thing would be a disaster
performance-wise. I'm still afraid to add more gettimeofday's into the
query parse/plan/execute code path, even though it would greatly ease
the problem of figuring out whether re-planning is worthwhile.
regards, tom lane