How to set default display mode in psql

后端 未结 4 801
长发绾君心
长发绾君心 2021-02-05 04:27

Almost every psql query comes out an illegible mess if not preceded by display configuration commands such as \\x auto. Typing this manually for each psql instance

4条回答
  •  既然无缘
    2021-02-05 04:50

    For me I add -q to turn that off for my psql command e.g.

    psql postgresql://u:p@h:5432/db  -q            -c 'select 1'
    #    connection string           turn it off   query
    

提交回复
热议问题