psql: A New Edit
Have you ever found yourself in the middle of a long statement in psql and wanted to pull up your favorite editor? Now, you can, using the same shortcut of control-x control-e that you would in bash!
$EDITOR ~/.inputrcNow add the following lines:
$if psql...save the file, and you're good to go.