From: | Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz> |
---|---|
To: | roypgsqlphp(at)xemaps(dot)com |
Cc: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: max length of varchar returned from a function |
Date: | 2001-09-27 00:09:32 |
Message-ID: | 1001549372.6939.18.camel@kant.mcmillan.net.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Thu, 2001-09-27 at 10:09, roypgsqlphp(at)xemaps(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2001-09-27 01:31:50 | Re: [HACKERS] PostgreSQL / PHP Overrun Error |
Previous Message | roypgsqlphp | 2001-09-26 22:09:43 | max length of varchar returned from a function |