Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dump Schema Cache through Admin API #3210

Closed
steve-chavez opened this issue Feb 6, 2024 · 1 comment · Fixed by #3233
Closed

Dump Schema Cache through Admin API #3210

steve-chavez opened this issue Feb 6, 2024 · 1 comment · Fixed by #3233
Assignees
Labels
difficulty: beginner Pure Haskell task enhancement a feature, ready for implementation

Comments

@steve-chavez
Copy link
Member

Problem

No way to dump the schema cache of a running instance, it's only possible to do it at startup with:

postgrest-with-postgresql-16 postgrest-run --dump-schema

Solution

Use the admin api (ref) to output the schema cache of a running instance:

$ curl localhost:3001/schema_cache

200 OK
Content-Type: application/json

{..}
@steve-chavez steve-chavez added enhancement a feature, ready for implementation difficulty: beginner Pure Haskell task labels Feb 6, 2024
@SkyWriter
Copy link
Contributor

Since I am in the context, I am hopping on this one next 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
difficulty: beginner Pure Haskell task enhancement a feature, ready for implementation
Development

Successfully merging a pull request may close this issue.

3 participants