Postgres equivalent to MySQL’s \G?

I’m not familiar enough with MySQL to know what the \G option does, but based on the documentation it looks like the psql \x option might do what you want.

It’s a toggle, though, so you do it before you submit the query.

\x
select * from sometable;

Leave a Comment