Re: PL/Python result object str handler

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: PL/Python result object str handler
Дата
Msg-id 50EC8E4E.5050808@gmx.net
обсуждение исходный текст
Ответ на Re: PL/Python result object str handler  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: PL/Python result object str handler  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On 1/8/13 4:32 AM, Magnus Hagander wrote:
> How does it work if there are many rows in there? Say the result
> contains 10,000 rows - will the string contain all of them? If so,
> might it be worthwhile to cap the number of rows shown and then follow
> with a "..." or something?

I don't think so.  Any number you pick will be too low for someone.
Since this would only be executed when explicitly asked for, it's up to
the user to manage this.  It's analogous to print(long_list) -- you
wouldn't truncate that.



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: json api WIP patch
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: PL/Python result object str handler