by olefoo · 13y ago · 0 comments
export PAGER='less -S'
export EDITOR='emacs -nw' #or a lesser editor if you prefer
That way you'll get result sets without linewraps and your queries will be edited in the non-default editor, which is `vi` in most distributions.I spend most of my time in emacs doing things in python, sql or what have you. Usually the only time I talk to a production database directly is when it's already in trouble.
And yes; one's migrations and DDL etc. should all be tested before being rolled out to production; apparently that is not an assumption people make around here.