Re: Need text wrapping inside a column to avoid record wrapping(tabular output of 'select')

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Need text wrapping inside a column to avoid record wrapping(tabular output of 'select')
Дата
Msg-id 20180725165236.w2jxbvetk47c4tjk@alvherre.pgsql
обсуждение исходный текст
Ответ на Need text wrapping inside a column to avoid record wrapping (tabularoutput of 'select')  (David Gauthier <davegauthierpg@gmail.com>)
Список pgsql-general
On 2018-Jul-25, David Gauthier wrote:

> Hi:
> 
> psql (9.6.7, server 9.1.9)  on RHEL6
> 
> In order to avoid record wrapping in the tabular output of a "select"
> statement, I need to limit the width of certain columns.  For those
> columns, I would like to have text wrapping so as not to lose any
> information (IOW, I don't want to simply truncatate and lose info).

\pset format wrapped

It doesn't break on whitespace though.

 $ 999,00 │ Nine hundred ninety nine dollars and z…
          │…ero cents
 $ 1.000,…│ One thousand  dollars and zero cents
…      00 │ 

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-general по дате отправления:

Предыдущее
От: David Gauthier
Дата:
Сообщение: Need text wrapping inside a column to avoid record wrapping (tabularoutput of 'select')
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Need text wrapping inside a column to avoid record wrapping(tabular output of 'select')