How to set default display mode in psql

后端 未结 4 806
长发绾君心
长发绾君心 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:36

    It should also be noted that the psql command line option -x or --expanded is the same as using \x from within.


    psql command-line options:

    -P expanded=auto
    --pset expanded=auto
    -x
    --expanded
    

    within the psql shell:

    \x
    

提交回复
热议问题