Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id D6E389FA381 for ; Mon, 14 May 2007 18:01:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 40609-02-2 for ; Mon, 14 May 2007 18:01:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5152B9FBC3B for ; Mon, 14 May 2007 18:01:04 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l4EL0a7J029474; Mon, 14 May 2007 17:00:36 -0400 (EDT) To: "Rob Tester" cc: "'Alvaro Herrera'" , pgsql-interfaces@postgresql.org Subject: Re: Trouble returning a text field from an SRF In-reply-to: <07ec01c79669$25dad7a0$719086e0$@com> References: <20070513181154.GB11750@alvh.no-ip.org> <07ec01c79669$25dad7a0$719086e0$@com> Comments: In-reply-to "Rob Tester" message dated "Mon, 14 May 2007 13:47:52 -0700" Date: Mon, 14 May 2007 17:00:36 -0400 Message-ID: <29473.1179176436@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/24 X-Sequence-Number: 6531 "Rob Tester" writes: > I created my tuple that way and set the Datum using > DirectFunctionCall1(...), but there still seems to be a limitation at 65535 > chars for the data. When my string is 65535 (or shorter) I get the text > back. When it is longer I get nothing for the string, but the rest of the > tuple is intact. Maybe the problem is on the client side? There's no visible restriction in the code you quoted (though I am wondering a bit about what "wktStr" is, and whether you've computed the required size of textOut correctly). regards, tom lane