
Writing a SQL statement in the psql console, I entered an external terminal to edit one of my sql statements using the \e command. However, I'm not sure how to exit the terminal.
I have tried using the escape key and \q.

Writing a SQL statement in the psql console, I entered an external terminal to edit one of my sql statements using the \e command. However, I'm not sure how to exit the terminal.
I have tried using the escape key and \q.
 
    
     
    
    Type :w & press Enter. This will save all the edited content.
Now,
Type :q and press Enter. This will throw you out of the editor to the terminal.
