summaryrefslogtreecommitdiff
path: root/src/bin/psql/stringutils.c
diff options
context:
space:
mode:
authorTom Lane2025-07-08 15:23:15 +0000
committerTom Lane2025-07-08 15:23:15 +0000
commit0b096e379e6f9bd49d38020d880a7da337e570ad (patch)
treea5175fa4dc74d1dc92c5a79b8036841f607eeaeb /src/bin/psql/stringutils.c
parenta27893df45ec5d8c657899202e9cf0b9a816fe2f (diff)
Change pg_test_timing to measure in nanoseconds not microseconds.HEADmaster
Most of our platforms have better-than-microsecond timing resolution, so the original definition of this program is getting less and less useful. Make it report nanoseconds not microseconds. Also, add a second output table that reports the exact observed timing durations, up to a limit of 1024 ns; and be sure to report the largest observed duration. The documentation for this program included a lot of system-specific details that now seem largely obsolete. Move all that text to the PG wiki, where perhaps it will be easier to maintain and update. Also, improve the TAP test so that it actually runs a short standard run, allowing most of the code to be exercised; its coverage before was abysmal. Author: Hannu Krosing <[email protected]> Co-authored-by: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/psql/stringutils.c')
0 files changed, 0 insertions, 0 deletions