PostgreSQL tips & tricks

From Jens' Hjørne
Jump to navigation Jump to search

Display width when selecting data

Set the display mode to wrapped:

\pset format wrapped

Then set the display width to the width you want. Please note that the width is for the entire set of columns, not only for each individual text column.

\pset columns 100