Re: Proposed patch - psql wraps at window width - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Proposed patch - psql wraps at window width
Date
Msg-id 200804291210.m3TCAvi02491@momjian.us
Whole thread Raw
In response to Re: Proposed patch - psql wraps at window width  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Proposed patch - psql wraps at window width  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut wrote:
> Am Dienstag, 29. April 2008 schrieb Bruce Momjian:
> > We do look at COLUMNS if the ioctl() fails, but not for file/pipe
> > output.
> 
> This is quite a useless complication.  Readline uses exactly the same ioctl() 
> call to determine the columns, so if ioctl() were to fail, then COLUMNS would 
> be unset or wrong as well.

I was thinking about Win32 or binaries that don't have readline.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: "Thomas Mueller"
Date:
Subject: Re: Protection from SQL injection
Next
From: Bruce Momjian
Date:
Subject: Re: Proposed patch - psql wraps at window width