Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 8FC759FB38B for ; Mon, 14 May 2007 18:24:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 99163-10 for ; Mon, 14 May 2007 18:24:40 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by postgresql.org (Postfix) with ESMTP id 4FDED9FB891 for ; Mon, 14 May 2007 18:24:40 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id a73so1657788pye for ; Mon, 14 May 2007 14:24:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; b=fp0/WSEpLjNsCSHgtr1iofsRAcyHf+u/33FjvSlwAPckRWlvmyfksf1z1/vaAEzzZUGVcmC+JW92JK1XMT+90VblMcDPWGhPWqmhrwbRVc78n8Yft7sREOI1A4NWyQc9UHV13MIaDsP66xfPNMBAUbRER/zDsKnmtbor0SVeQJc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; b=IyE3UtjCRJYiKurajG/s0VyQ9TmNI9w+c43nssxtqm3CzY0eGS3POsZtMAw5ySG0yti5bpSAjPlWqr92JPqHcQfj5EX0P0Srk3/CC+YWQ34xRvEeQJrlTxtGCuHk4B3YJOLsGhzOIUXxFso6aiUjpVu22Jcm1WZTglZsZtLyBDo= Received: by 10.35.69.11 with SMTP id w11mr11634606pyk.1179177879146; Mon, 14 May 2007 14:24:39 -0700 (PDT) Received: from progrobt ( [66.224.81.242]) by mx.google.com with ESMTP id f77sm30113515pyh.2007.05.14.14.24.27; Mon, 14 May 2007 14:24:35 -0700 (PDT) From: "Rob Tester" To: "'Tom Lane'" Cc: "'Alvaro Herrera'" , References: <20070513181154.GB11750@alvh.no-ip.org> <07ec01c79669$25dad7a0$719086e0$@com> <29473.1179176436@sss.pgh.pa.us> In-Reply-To: <29473.1179176436@sss.pgh.pa.us> Subject: Re: Trouble returning a text field from an SRF Date: Mon, 14 May 2007 14:23:41 -0700 Message-ID: <07ed01c7966e$308ffc20$91aff460$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 thread-index: AceWavoZLboCanNNT2eq1YAOWEdVSAAAb1uQ Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/25 X-Sequence-Number: 6532 Hmm.. wktStr was the original variable name from the code, I changed it to be more 'readable' for the question I was presenting (probably not a good idea in hindsight). The length calculation has been changed as well and what I presented would be a few bytes short. I have tried this using pgadmin3 (v1.6.1) and npgsql with the same results, no data returned in the text field when the data goes over 65535 chars. Maybe both clients are incorrectly setting a limit on a text field? Rob. -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Monday, May 14, 2007 2:01 PM To: Rob Tester Cc: 'Alvaro Herrera'; pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] Trouble returning a text field from an SRF "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