Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add progress bar during query execution to track progress.#63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sokolcati merged 4 commits intomasterfrompg_progress_bar
Jul 16, 2025

Conversation

sokolcati
Copy link
Contributor

Progress bar is run-time SQL-query progress indicator.

Function pg_progress_bar(pid) extracts the current query state from backend with specified 'pid'. Then gets the
numerical values of the actual rows and total rows and count progress for the whole query tree. Function returns
numeric value from 0 to 1 describing the measure of query fulfillment. This function can be used to be embedded
in the PostgreSQL GUI.

To intuitively track progress without using a graphical client, you can use the additionally implemented function
pg_progress_bar_visual(pid, delay). It prints state every period specified by 'delay' (in seconds).

Increase version to 1.2 due to init.sql change.

Ekaterina Sokolova added4 commitsFebruary 25, 2025 12:52
Progress bar is run-time SQL-query progress indicator.Function pg_progress_bar(pid) extracts the current query state from backend with specified 'pid'. Then gets thenumerical values of the actual rows and total rows and count progress for the whole query tree. Function returnsnumeric value from 0 to 1 describing the measure of query fulfillment. This function can be used to be embeddedin the PostgreSQL GUI.To intuitively track progress without using a graphical client, you can use the additionally implemented functionpg_progress_bar_visual(pid, delay). It prints state every period specified by 'delay' (in seconds).Increase version to 1.2 due to init.sql change.
@sokolcatisokolcati requested a review fromMakSlJuly 15, 2025 09:32
@codecovCodecov
Copy link

codecovbot commentedJul 15, 2025

Codecov Report

Attention: Patch coverage is69.86301% with44 lines in your changes missing coverage. Please review.

Project coverage is 75.74%. Comparing base(b3ae98e) to head(2af51c2).

Files with missing linesPatch %Lines
pg_query_state.c69.86%44 Missing⚠️
Additional details and impacted files
@@            Coverage Diff             @@##           master      #63      +/-   ##==========================================- Coverage   77.03%   75.74%   -1.30%==========================================  Files          10       10                Lines         736      878     +142     ==========================================+ Hits          567      665      +98- Misses        169      213      +44

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@MakSlMakSl left a comment

Choose a reason for hiding this comment

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

everything all right

@sokolcatisokolcati merged commitc927d0c intomasterJul 16, 2025
0 of 4 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@MakSlMakSlMakSl approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@sokolcati@MakSl

[8]ページ先頭

©2009-2025 Movatter.jp