pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedmax length of varchar returned from a function
2+ messages / 2 participants
[nested] [flat]
* max length of varchar returned from a function
@ 2001-09-26 22:09 roypgsqlphp@xemaps.com
0 siblings, 1 reply; 2+ messages in thread
From: roypgsqlphp@xemaps.com @ 2001-09-26 22:09 UTC (permalink / raw)
To: pgsql-php
Can anyone tell me what the maximum length of a varchar returned from a plpgsql function is?
Roy.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: max length of varchar returned from a function
@ 2001-09-27 00:09 Andrew McMillan <andrew@catalyst.net.nz>
parent: roypgsqlphp@xemaps.com
0 siblings, 0 replies; 2+ messages in thread
From: Andrew McMillan @ 2001-09-27 00:09 UTC (permalink / raw)
To: roypgsqlphp@xemaps.com; +Cc: pgsql-php
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-09-27 00:09 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-26 22:09 max length of varchar returned from a function roypgsqlphp@xemaps.com
2001-09-27 00:09 ` Andrew McMillan <andrew@catalyst.net.nz>
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