【问题标题】:How can I show the output of psql commands correctly in a terminal emulator?如何在终端模拟器中正确显示 psql 命令的输出?
【发布时间】:2018-06-25 02:37:34
【问题描述】:

我在 Ubuntu 的终端模拟器 lxterminal 中使用 psql 命令行客户端。当我运行以下命令时,输出很混乱

students=# select * from information_schema.routines;

我想知道是否可以将终端仿真器中的输出视为一张漂亮的表格?谢谢。

附言这是mysql 的类似问题:How can I show the output of mysql commands correctly in a terminal emulator?

【问题讨论】:

标签: postgresql psql


【解决方案1】:

对于“垂直”显示,使用\x https://www.postgresql.org/docs/current/static/app-psql.html

-x

--展开

打开扩展表格格式模式。这相当于 \x 或 \pset 展开。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-02-17
    • 1970-01-01
    • 1970-01-01
    • 2022-01-04
    • 1970-01-01
    • 2018-05-05
    • 2017-02-09
    • 1970-01-01
    相关资源
    最近更新 更多