PostgREST API - Relation does not exist error #3097
-
I have a PostgREST service which appends a default schema to the table name that i pass. The table name passed already has another schema name appended to a table in it where the table resides, and which I will like to call through API. How can we fix for the API not to append the default schema name? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
laurenceisla
Dec 11, 2023
Replies: 1 comment 2 replies
-
Hi. Sorry, I didn't catch most of your explanation... but I think you want to change the default If that's not it, please clarify what's the behavior you're getting vs the result you want, preferably with an example. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I get it. The only way to change the schema is by using the
Accept-Profile: schema_name
(forGET
,HEAD
) andContent-Profile: schema_name
(forPOST
, etc.) as it's mentioned in the docs I linked. For that to work, your configuration should list all the available schemas, e.g.db-schema = schema1,schema2