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

Populate empty extension location status if necessary #502

Merged
merged 3 commits into from
Jan 24, 2024
Merged

Conversation

ianstanton
Copy link
Member

@ianstanton ianstanton commented Jan 23, 2024

When we install an extension that needs to be enabled with LOAD in Tembo Cloud, the cdb.status.extensions.locations info is empty. Example with auto_explain:

status:
  extensions:
  - description: administrative functions for PostgreSQL
    locations:
    - database: app
      enabled: false
      error: false
      schema: public
      version: "2.1"
    - database: postgres
      enabled: true
      error: false
      schema: pg_catalog
      version: "2.1"
    name: adminpack
  - description: The auto_explain module provides a means for logging execution plans
      of slow statements automatically, without having to run EXPLAIN by hand.
    locations: []
    name: auto_explain

This PR adds logic to populate default values for this case.

Signed-off-by: Ian Stanton <ian@tembo.io>
@ianstanton ianstanton marked this pull request as ready for review January 23, 2024 22:45
@ianstanton ianstanton merged commit 8089481 into main Jan 24, 2024
9 checks passed
@ianstanton ianstanton deleted the tem-2886-2 branch January 24, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants