pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Hallgren <thhal@mailblocks.com>
To: Markus Schaber <schabios@logi-track.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Cc: Filip Hrbek <filip.hrbek@plz.comstar.cz>
Subject: Re: PLJava and Database Meta Data
Date: Fri, 11 Feb 2005 14:19:33 +0100
Message-ID: <thhal-0aEnoAuNMxicXo3uf6+PCZQjtO2fifP@mailblocks.com> (raw)
In-Reply-To: <420CAB1A.10908@logi-track.com>
References: <420B87A7.6080407@mailblocks.com>
	<thhal-0OSDnAts/xicKOdXFhNL1b7jI6Hr/Fb@mailblocks.com>
	<420C8477.7060604@logi-track.com>
	<420C8647.2010506@mailblocks.com>
	<thhal-0yh7oAkFMxiclCh2yth1Ot4ZOLBGAUf@mailblocks.com>
	<420C8F16.9040708@logi-track.com>
	<420C9333.9040208@mailblocks.com>
	<thhal-0tSvoAltMxicJ2/PXRMLL16HFetPb4k@mailblocks.com>
	<420C982D.9050401@logi-track.com>
	<420CA013.8070009@mailblocks.com>
	<thhal-0lzjoAoFMxicX3NiOUR7LneqpK4swBh@mailblocks.com>
	<thhal-0lzjoAoNMxiceVLzfQR5Wq+0/NL/omO@mailblocks.com>
	<420CAB1A.10908@logi-track.com>
	<420CB0E5.3060305@mailblocks.com>
	<thhal-0aEnoAuFMxic5Cq84dW6PTeXp3iWsbR@mailblocks.com>

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





view thread (15+ messages)  latest in thread

Message-ID: <thhal-0aEnoAuNMxicXo3uf6+PCZQjtO2fifP@mailblocks.com>
Permalink:  ../thhal-0aEnoAuNMxicXo3uf6+PCZQjtO2fifP@mailblocks.com/
Also on:    postgresql.org/message-id/thhal-0aEnoAuNMxicXo3uf6+PCZQjtO2fifP@mailblocks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: thhal@mailblocks.com, schabios@logi-track.com, filip.hrbek@plz.comstar.cz
  Subject: Re: PLJava and Database Meta Data
  In-Reply-To: <thhal-0aEnoAuNMxicXo3uf6+PCZQjtO2fifP@mailblocks.com>
  References: <420B87A7.6080407@mailblocks.com> <thhal-0OSDnAts/xicKOdXFhNL1b7jI6Hr/Fb@mailblocks.com> <420C8477.7060604@logi-track.com> <420C8647.2010506@mailblocks.com> <thhal-0yh7oAkFMxiclCh2yth1Ot4ZOLBGAUf@mailblocks.com> <420C8F16.9040708@logi-track.com> <420C9333.9040208@mailblocks.com> <thhal-0tSvoAltMxicJ2/PXRMLL16HFetPb4k@mailblocks.com> <420C982D.9050401@logi-track.com> <420CA013.8070009@mailblocks.com> <thhal-0lzjoAoFMxicX3NiOUR7LneqpK4swBh@mailblocks.com> <thhal-0lzjoAoNMxiceVLzfQR5Wq+0/NL/omO@mailblocks.com> <420CAB1A.10908@logi-track.com> <420CB0E5.3060305@mailblocks.com> <thhal-0aEnoAuFMxic5Cq84dW6PTeXp3iWsbR@mailblocks.com> <thhal-0aEnoAuNMxicXo3uf6+PCZQjtO2fifP@mailblocks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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