Re: Problem with displaying "wide" tables in psql

Поиск
Список
Период
Сортировка
От Sergey Muraviov
Тема Re: Problem with displaying "wide" tables in psql
Дата
Msg-id CAJTaR33SkRLwE_sTVnL6HtDN05B8EgdN5n-hWSWM6=BO7Rxajw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Problem with displaying "wide" tables in psql  (Greg Stark <stark@mit.edu>)
Ответы Re: Problem with displaying "wide" tables in psql  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Hi.

How can I pass or set the value of pset variable for an regression test?

The code with ioctl was copied from print_aligned_text function, which has a long history.
43ee2282 (Bruce Momjian      2008-05-16 16:59:05 +0000  680)                    if (ioctl(fileno(stdout), TIOCGWINSZ, &screen_size) != -1)

2014-04-08 20:27 GMT+04:00 Greg Stark <stark@mit.edu>:
On Tue, Apr 8, 2014 at 12:19 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> I don't think this is easily testable that way - doesn't it rely on
> determining the width of the terminal? Which you won't have when started
> from pg_regress?

There's a pset variable to set the target width so at least the
formatting code can be tested. It would be nice to have the ioctl at
least get called on the regression farm so we're sure we aren't doing
something unportable.

--
greg



--
Best regards,
Sergey Muraviov

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

Предыдущее
От: Rajeev rastogi
Дата:
Сообщение: Re: Autonomous Transaction (WIP)
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: default opclass for jsonb (was Re: Call for GIST/GIN/SP-GIST opclass documentation)