Using psql variables

In the previous recipe, we have seen how to use the ON_ERROR_STOP variable. Here we show how to work with any variable, including user-defined ones.