TIL: Formatting psql output

You can format your query output to more readable format.

\x on

It will output a vertical record instead of horizontal when record is not fit into the width of your screen.

You can also make it automatic

\x auto

To turn it off

\x off

See more on postgres docs


Web Developer. Based in Quezon City, PH. Interested to do some work with Elixir, React.