Hacker News new | ask | show | jobs
by efxhoy 938 days ago
I keep queries in .sql files in git repo. I run longer queries by writing them in a file and including/running it with \i. There's also \e to open $PSQL_EDITOR.