Command-line trick to help your memory
September 15th, 2008
I’m learning the PostgreSQL system catalog tables right now, and was wishing that I had some catalog flashcards. I made my wish ‘aloud’ on IRC today, and @davidfetter managed to blow my mind with this simple command-line switch for psql: -E. Now, every time I use a command, the tool tells me what the underlying SQL query is. Great for jogging the memory, and I’ll be putting off making my catalog flashcards for a few more days. Now I wonder what other revealing command-line switches I’ve overlooked!
See screenshot:
