Disable wrapping in Psql output

后端 未结 5 1460
猫巷女王i
猫巷女王i 2021-02-06 21:43

When using Psql in Linux, if the result of my SQL query contains many columns or long strings of data, it will wrap the initial view and only once I scroll to the side will it s

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 22:20

    probably you should use aligned format for output:

    \pset format aligned
    

    You can check all available formats to fit your needs:

    \pset format TAB
    aligned          html             latex-longtable  unaligned        
    asciidoc         latex            troff-ms         wrapped       
    

    Also you should check PAGER configured value in your environment

提交回复
热议问题