0

I am using psql command line client in terminal emulator lxterminal in Ubuntu. When I run the following command the output is mess

students=# select * from information_schema.routines;

enter image description here

I wonder if it is possible to view the output in a terminal emulator as a nice table? Thanks.

p.s. Here is a similar question for mysql: How can I show the output of mysql commands correctly in a terminal emulator?.

3

1 Answer 1

2

for "vertical" display, use \x https://www.postgresql.org/docs/current/static/app-psql.html

-x

--expanded

Turn on the expanded table formatting mode. This is equivalent to \x or \pset expanded.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.