PostgreSQL CLI Setup
The article discusses the author's PostgreSQL CLI setup for efficient database querying. It highlights the use of various tools like pgcli and pspg to enhance the terminal experience. The author shares insights on configuration for better performance and usability.
- ▪The author prefers PostgreSQL for quick ad-hoc queries against well-defined databases.
- ▪They have created a terminal-based workflow using PostgreSQL service configs, pgcli, and pspg.
- ▪The setup allows for fast startup and pleasant interaction, integrating well with the terminal environment.
Opening excerpt (first ~120 words) tap to expand
My PostgreSQL CLI setup Written by alchemyst in Uncategorized Motivatation My database of choice is PostgreSQL. I often find myself wanting to do quick ad-hoc queries against a set of well-defined databases. Maybe I just want to know the internal id of a customer from their name, or check on the status of a job. If I’m doing real reporting and producing outputs I will usually spin up PyCharm. It’s got amazing db support, which is the same as you would get from JetBrain’s dedicated database product DataGrip. Great ergonomics, but Pycharm takes a while to get started and frankly the setup of all our dbs is onerous enough that I haven’t registered all of them. I also use pgAdmin, but that’s also tedious to set up “just right”.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Co.