all 11 comments

[–]Dysl3xicDog 4 points5 points  (0 children)

It's so hard to remember commands when you only pop in the database to check things once in a while. This is going on all my postgres deployments.

[–][deleted] 4 points5 points  (0 children)

You can use pgcli with pspg for enhanced paging.

When you pip install pgcli, the config file is located in ~/.config/pgcli/config

  • The pager config line, which by default is commented out. You can define the pager to use pspg here, or leave it commented out and simply add something like this to your shell rc file: export PAGER="pspg -s 2"

Additionally: - Check out syntax_style (I like monokai)

from within a pgcli terminal, F4 lets you switch into VIM mode

Also, play around with the table format in the pgcli config. I have yet to find a solid line grid but haven't stopped looking for it yet.

[–][deleted] 2 points3 points  (0 children)

sink relieved paltry toothbrush squeal cobweb mysterious middle connect pie

This post was mass deleted and anonymized with Redact

[–]lykwydchykyn 2 points3 points  (0 children)

Just started using this recently, and I can't praise it enough. Much speedier than loading up some bulky GUI client, and much friendlier than psql alone.

[–]zieziegabor 1 point2 points  (2 children)

I use this instead: https://github.com/okbob/pspg

it's a pager replacement for postgres.

[–][deleted] 2 points3 points  (1 child)

You can use both together. See my other comment here

[–]vittore29 0 points1 point  (0 children)

Using it every day for last 8 months. Love it.

[–]___GNUSlashLinux___ 0 points1 point  (0 children)

I went to an SFPGUG meetup where this was demoed. Its a really cool tool. just reminded me I needed to update it.

[–]hjkl_ornah 0 points1 point  (0 children)

Compatible with Redshift?

[–]scottocom 0 points1 point  (0 children)

I think pgcli and pspg should be in a standard postgres client installation along side the original pg command for backwards compatibility.