> ## Content Index
> Fetch the complete content index at: https://logbuch-dev-blog.nichedthemes.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# psql picks the layout with \x auto
- URL: https://logbuch-dev-blog.nichedthemes.com/psql-x-auto/
- Published: 2026-10-28T19:40:00.000Z
- Updated: 2026-10-28T19:40:00.000Z
- Author: Mira Okafor
- Tags: Postgres, Tooling, #til, #Import 2026-11-19 07:37

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

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

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