Search code examples
linuxpostgresqlpsqlfedora

How do I stop postgres from taking up the whole terminal with blank space after my query?


Lately whenever I run psql queries in my terminal it clears the screen and adds a bunch of blank space. I feel like this has started happening since I upgraded to Fedora 36 but am not sure.

Query output

I am trying to get it back to normal and just output the query result like any other command you run, by just appending the result after my last command


Solution

  • Found the answer

    I had the pager turned on and I was able to use the \pset pager command to turn it off.

    postgresql.org/docs