Skip site navigation (1) Skip section navigation (2)

Re: PL/Python result object str handler

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/Python result object str handler
Date: 2013-01-08 21:23:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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.

In response to


pgsql-hackers by date

Next:From: Magnus HaganderDate: 2013-01-08 21:24:28
Subject: Re: PL/Python result object str handler
Previous:From: Peter EisentrautDate: 2013-01-08 21:19:06
Subject: Re: json api WIP patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group