Last Updated: February 25, 2016
·
869
· zaiste

Edit PostgreSQL query in your editor

Inside psql there is a convenient command \e which opens an editor (defined in EDITOR variable) and it allows you to edit the query. Once saved, you will get back to psql and the query will be executed.