Skip to content

[chore]: remove pg_database_size from the instance manager probe #5686

Closed

Description

@gbartolini

Is there an existing issue already for this feature request/idea?

  • I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.

What problem is this feature going to solve? Why should it be added?

The instance manager probe currently asks for the size of all the databases in an instance. See

(SELECT pg_size_pretty(SUM(pg_database_size(oid))) FROM pg_database)`)

In large deployments this might take a long time and fail.

Describe the solution you'd like

Remove it from the instance manager status and move this in the plugin directly for the cnpg status command.

Describe alternatives you've considered

N/A

Additional context

No response

Backport?

Yes

Are you willing to actively contribute to this feature?

Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    triage
    on Sep 30, 2024
  2. self-assigned this
    on Sep 30, 2024
  3. added
    enhancement 🪄
    and removed
    triage
    on Sep 30, 2024
  4. added this to the 1.24.1 milestone on Sep 30, 2024
  5. added a commit that references this issue on Sep 30, 2024
    c677523
  6. added 3 commits that reference this issue on Oct 1, 2024
    784a464
    34cd35a
    d1838ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement 🪄

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions