Has anyone a solution for this issue (tested on postgres v12)
I would like to use the psql variable option in conjunction with command like this:
psql -v env=test -c "SELECT :'env';"
but this will fail
on the contrary this one won't
echo "SELECT :'env';" |psql -v env=test
Has anyone an idea about how to solve this or do you think this is a bug ? Thanks for your insights