X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CAE318BA1A9 for ; Fri, 11 Feb 2005 13:19:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91195-08 for ; Fri, 11 Feb 2005 13:19:38 +0000 (GMT) Received: from smtp1.mailblocks.com (smtp1.mailblocks.com [140.174.9.69]) by svr1.postgresql.org (Postfix) with SMTP id ECC4C8BA125 for ; Fri, 11 Feb 2005 13:19:36 +0000 (GMT) Received: (qmail 30193 invoked from network); 11 Feb 2005 13:19:36 -0000 Received: from 10.10.0.51 (HELO mailblocks.com) (10.10.0.51) by 10.10.0.7 with SMTP; 11 Feb 2005 13:19:36 -0000 MIME-Version: 1.0 To: Markus Schaber Cc: "pgsql-jdbc@postgresql.org" , Filip Hrbek Content-Type: text/plain; charset=ISO-8859-1; format=flowed References: <420B87A7.6080407@mailblocks.com> <420C8477.7060604@logi-track.com> <420C8647.2010506@mailblocks.com> <420C8F16.9040708@logi-track.com> <420C9333.9040208@mailblocks.com> <420C982D.9050401@logi-track.com> <420CA013.8070009@mailblocks.com> <420CAB1A.10908@logi-track.com> <420CB0E5.3060305@mailblocks.com> X-Accept-Language: en-us, en Content-Transfer-Encoding: 7bit Subject: Re: PLJava and Database Meta Data X-MB-Message-Source: ClientSMTP Received: from 212.209.14.34 by app2.mailblocks.com (192.168.225.51) with SMTP (authenticated); Fri, 11 Feb 2005 05:19:36 -0800 X-MB-Message-Type: User Message-Id: From: Thomas Hallgren In-Reply-To: <420CAB1A.10908@logi-track.com> Date: Fri, 11 Feb 2005 14:19:33 +0100 User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.435 tagged_above=0 required=5 tests=AWL, DNS_FROM_AHBL_RHSBL, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200502/91 X-Sequence-Number: 12271 Markus Schaber wrote: >Okay, so this is fine for primitive types. How does SPI deal with >complex types? > > A complex type is represented by a C-structure called HeapTuple. A HeapTuple is associated with a TupleDesc that acts as its description. The HeapTuple is passed by reference (a C-language pointer) and PLJava will obtains its individual values as Datums using a function called SPI_getbinval. An individual value may of course be a reference to another complex type. Complex types are created using the function heap_form_tuple. >Yes, I have. Especially for large geometries. In our database, we have >geometry objects up to 20MB per piece. Also, in PostGIS, send/receive >binary representation differs slightly from internal representation (and >input/output text is even more overhead). > > Ok. We are probably talking about different things. I'm referring to the internal C-functions that are executed directly in the backend. - thomas