summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Lane2008-05-25 21:51:30 +0000
committerTom Lane2008-05-25 21:51:30 +0000
commit7b50cb7aedf129ccedf7d56e5c8e554d5672f0e3 (patch)
tree91611d1abbed6a6d6c30a684396d4fbb1fa7c2ee /doc
parent8e30db83a5b87b2d812d238674d5e5615f700dc1 (diff)
Adjust timestamp regression tests to prevent two low-probability failure
cases. Recent buildfarm experience shows that it is sometimes possible to execute several SQL commands in less time than the granularity of Windows' not-very-high-resolution gettimeofday(), leading to a failure because the tests expect the value of now() to change and it doesn't. Also, it was recognized some time ago that the same area of the tests could fail if local midnight passes between the insertion and the checking of the values for 'yesterday', 'tomorrow', etc. Clean all this up per ideas from myself and Greg Stark. There remains a window for failure if the transaction block is entered exactly at local midnight (so that 'now' and 'today' have the same value), but that seems low-probability enough to live with. Since the point of this change is mostly to eliminate buildfarm noise, back-patch to all versions we are still actively testing.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions