Re: PL/Python result object str handler - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: PL/Python result object str handler
Date
Msg-id 50EC8E4E.5050808@gmx.net
Whole thread Raw
In response to Re: PL/Python result object str handler  (Magnus Hagander <magnus@hagander.net>)
Responses Re: PL/Python result object str handler
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: json api WIP patch
Next
From: Magnus Hagander
Date:
Subject: Re: PL/Python result object str handler