Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Postgres pager (okbob.blogspot.com)
1 point by Dowwie on Sept 20, 2017 | hide | past | favorite | 1 comment


Step 1: clone the project repo: https://github.com/okbob/pspg

Step 2: ./configure, make, and make install

Step 3: update your shell config (.bashrc, .zshrc, ...), exporting as follows: "export PAGER="pspg" -- you can update this command to specify one of the color themes

Step 4: update .psqlrc:

1. make sure your .psqlrc file does not deactivate PAGER

2. define "\pset border 2"

Step 5: connect to your database using psql and run a query with lots of results




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: