Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> Each transaction commit gets the current time(NULL) immediately before
> it commits.
time() has 1 second resolution and ergo is utterly useless for this.
gettimeofday() may have sufficient resolution, but the resolution is
not specified anywhere.
regards, tom lane