Closed jsbrain closed 1 year ago
Might be related to https://github.com/supabase/supabase-js/issues/691
Hello, to use explain first you need to enable server side with:
alter role authenticator set pgrst.db_plan_enabled to true;
notify pgrst, 'reload config';
Let me know if that works.
Thanks @steve-chavez for the clarification.
Probably worth adding this to the docs.
Looks like so far .explain
isn't documented at all!?
And unfortunately no, it did not work ... also restarted the deployment after I ran the commands but no change.
I'm on self-hosted btw. with this config.
If you're on self-hosted, you can add PGRST_DB_PLAN_ENABLED: true
here.
Still the same error ...
I tried to send a request directly to postgrest via Postman, setting the accept error as: shown here.
Output:
{
"code": "PGRST107",
"details": null,
"hint": null,
"message": "None of these media types are available: application/vnd.pgrst.plan+json"
}
Something is odd ... 🤔
You're using an old version https://github.com/supabase/supabase/blob/f3031fa24fd4a65e7d48f079db45a0cd3ee0311c/docker/docker-compose.yml#L104
Change it to v10.1.1
Well, that solves the mystery. I was somehow under the impression that the docker-compose is up to date with the js clients.
Thanks so much for your help!
Bug report
Describe the bug
.explain
results in media error.To Reproduce
results in
System information