Postgres

Queries, indexes and migrations, measured before and after.

TIL

psql picks the layout with \x auto

\x auto switches psql to one column per row only when a row is wider than the terminal. Narrow results stay a table.

$ echo '\x auto' >> ~/.psqlrc

I used to toggle \x by hand and forget to toggle it back.

Buy Logbuch