explain.dalibo.com icon indicating copy to clipboard operation
explain.dalibo.com copied to clipboard

Script to create a plan from query

Open piranha opened this issue 1 year ago • 2 comments

I'm writing a shell script to create a plan from query and got to the following curl command:

echo "$PLAN" | curl -s -w '%{redirect_url}' --data-urlencode plan@- -X POST 'https://explain.dalibo.com/new'

It returns an url to the plan, but then the url returns error 500. It's https://explain.dalibo.com/plan/0424...hacb (I can post full URL if you want, but I suppose you can see that in logs somewhere). Any pointers on what's wrong the the query? $PLAN in question is a JSON from postgres.

piranha avatar Dec 07 '23 09:12 piranha