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
|
Список | 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:There's a pset variable to set the target width so at least the
> 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?
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 по дате отправления: