Improvements in psql hooks for variables

Improvements in psql hooks for variables

Edit