From: Andrew McMillan <andrew@catalyst.net.nz>
To: roypgsqlphp@xemaps.com
Cc: pgsql-php@postgresql.org
Subject: Re: max length of varchar returned from a function
Date: 27 Sep 2001 12:09:32 +1200
Message-ID: <1001549372.6939.18.camel@kant.mcmillan.net.nz> (raw)
In-Reply-To: <200109262210.f8QMAah01996@postgresql.org>
References: <200109262210.f8QMAah01996@postgresql.org>
On Thu, 2001-09-27 at 10:09, roypgsqlphp@xemaps.com wrote:
> Can anyone tell me what the maximum length of a varchar returned from a plpgsql function is?
>
It depends on your version of PostgreSQL, but it should be of the order
of 100's of MB with current versions.
Using LZTEXT type with 7.0 I was retrieving fields up to around 100-200k
(depending on compressibility), but 7.1 implements automatic
offloading/compressing of large fields.
I don't believe there should be current limitations in the
implementation of pl/pgsql which would impose lower limits on these
things than are imposed by the database field types. Someone will no
doubt correct me if I am wrong :-)
Regards,
Andrew.
--
--------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7217 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: andrew@catalyst.net.nz, roypgsqlphp@xemaps.com
Subject: Re: max length of varchar returned from a function
In-Reply-To: <1001549372.6939.18.camel@kant.mcmillan.net.nz>
References: <200109262210.f8QMAah01996@postgresql.org> <1001549372.6939.18.camel@kant.mcmillan.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox