Re: Re: Yikes! Bitten by line length?

Поиск
Список
Период
Сортировка
От Ken Corey
Тема Re: Re: Yikes! Bitten by line length?
Дата
Msg-id 3A677899.D0AC1392@kencorey.com
обсуждение исходный текст
Ответ на Yikes! Bitten by line length?  (Ken Corey <ken@kencorey.com>)
Список pgsql-novice
Ian Lance Taylor wrote:
> I very much doubt it is the fgets function.
>
> I suspect it is the terminal driver.  The terminal driver only hands
> data back to the application when it sees a newline.  It probably only
> holds 256 characters.
>
> Try using an editor to create a file with a line longer than 256
> characters, and run `test < file', to see whether it is fgets or the
> terminal driver.

You're exactly on the money. Thanks. Where were you this morning?
*smile*

Since a partiularly long SQL query was the first time I'd seen this kind
of a problem (and others might see it), perhaps it still deserves a
paragraph in the FAQ, even though it has *nothing* to do with postgreSQL
directly?

-Ken

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

Предыдущее
От: Ken Corey
Дата:
Сообщение: Argh! What's a 'bpchar'? (copy/serial issues...I think)
Следующее
От: Ian Lance Taylor
Дата:
Сообщение: Re: Re: Yikes! Bitten by line length?