Skip to content

Commit

Permalink
Calculate compute_backpressure_throttling_seconds correctly
Browse files Browse the repository at this point in the history
The original value that we get is measured in microseconds. It comes
from a calculation using Postgres' GetCurrentTimestamp(), whihc is
implemented in terms of gettimeofday(2).

Signed-off-by: Tristan Partin <tristan@neon.tech>
  • Loading branch information
tristan957 authored Nov 12, 2024
1 parent 05381a4 commit a61d81b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SELECT neon.backpressure_throttling_time()::float8 / 1000 AS throttled;
SELECT (neon.backpressure_throttling_time()::float8 / 1000000) AS throttled;

1 comment on commit a61d81b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5473 tests run: 5242 passed, 1 failed, 230 skipped (full report)


Failures on Postgres 16

# Run all failed tests locally:
scripts/pytest -vv -n $(nproc) -k "test_sharded_ingest[release-pg16-github-actions-selfhosted-1]"
Flaky tests (2)

Postgres 17

Code coverage* (full report)

  • functions: 31.8% (7887 of 24834 functions)
  • lines: 49.4% (62431 of 126257 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
a61d81b at 2024-11-12T20:57:39.247Z :recycle:

Please sign in to comment.