Skip to content

API does not match config and DB state #2808

Answered by laurenceisla
zoltan-spire asked this question in Q&A
Discussion options

You must be logged in to vote
  • why doesn't postgrest pick up the db-schemas parameter from config.conf?

I think it is taking the paremeters, but it does not show them in the dump-config because config.conf was not included. Doing this should show you the correct parameters:

docker exec -it odin-api-server-1 postgrest config.conf --dump-config  
  • why does the API return a non-empty schema, if the db-schema points to the empty public schema?

Related to the previous answer, that's because it is showing the odin schema.

  • if postgrest is pointing to the non-empty odin schema, why doesn't it reflect the recent changes?

If it's not a schema cache problem, then maybe the permissions are not set? Verify that you gran…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zoltan-spire
Comment options

@zoltan-spire
Comment options

@laurenceisla
Comment options

Answer selected by zoltan-spire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants