Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgbackrest info json output doesn't show percentage complete #2343

Closed
ajayrahul97 opened this issue Apr 30, 2024 · 1 comment
Closed

pgbackrest info json output doesn't show percentage complete #2343

ajayrahul97 opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels

Comments

@ajayrahul97
Copy link

ajayrahul97 commented Apr 30, 2024

Please provide the following information when submitting an issue (feature requests or general comments can skip this):

  1. pgBackRest version: 2.48

  2. PostgreSQL version: 12.12

  3. Operating system/version - Ubuntu 23.04.

  4. Did you install pgBackRest from source or from a package? : Source

  5. Please attach the following as applicable:
    pgbackrest.conf file(s)
    [seg0]
    pg1-socket-path = /tmp
    pg1-user = myadmin
    log-path = /usr/local/ajay/logs
    repo1-type = posix
    repo1-path = /home/myadmin/ajay/archive/seg0

  6. Describe the issue:
    pgbackrest info --output=json does not show the pct-cplt field when a backup is in progress.
    I can see that here: https://github.com/pgbackrest/pgbackrest/blame/main/src/command/info/info.c#L243, there is a condition to specifically not include Percentage Complete for output type json. Please let me know if there is any specific reason for the condition to exist.

@jreidthompson jreidthompson self-assigned this May 1, 2024
@jreidthompson
Copy link
Contributor

jreidthompson commented May 1, 2024

See #2007. The comments explain why and recommend a means to calculate percentage complete using size and size-cplt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants