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 02BC28B9B41 for ; Wed, 23 Feb 2005 17:25:33 +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 70544-10 for ; Wed, 23 Feb 2005 17:25:22 +0000 (GMT) Received: from ns2.limegroup.com (dsl092-115-081.nyc2.dsl.speakeasy.net [66.92.115.81]) by svr1.postgresql.org (Postfix) with ESMTP id 108258B9E1A for ; Wed, 23 Feb 2005 17:25:21 +0000 (GMT) Received: from ns2.limegroup.com (localhost. [127.0.0.1]) by ns2.limegroup.com (8.12.10/8.12.10) with ESMTP id j1NHP1oX002428; Wed, 23 Feb 2005 12:25:08 -0500 Received: (from apache@localhost) by ns2.limegroup.com (8.12.10/8.12.10/Submit) id j1NHP1HM002426; Wed, 23 Feb 2005 12:25:01 -0500 X-Authentication-Warning: ns2.limegroup.com: apache set sender to dblasby@openplans.org using -f Received: from S0106000c41b39679.gv.shawcable.net (S0106000c41b39679.gv.shawcable.net [24.68.204.73]) by webmail.limegroup.com (IMP) with HTTP for ; Wed, 23 Feb 2005 12:25:01 -0500 Message-ID: <1109179501.421cbc6d4bd9e@webmail.limegroup.com> Date: Wed, 23 Feb 2005 12:25:01 -0500 From: dblasby@openplans.org To: Markus Schaber , "pgsql-jdbc@postgresql.org" , PostGIS Development Discussion Subject: Re: [postgis-devel] JDBC & WKB - 400% overhead MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.7 X-Originating-IP: 24.68.204.73 X-Scanned-By: MIMEDefang 2.36 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.228 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200502/177 X-Sequence-Number: 12357 Markus, >Maybe your postgresql driver only uses text transfer up to now. >asBinary() returns a byte array, so this should be transferred more >efficiently. I'm using the JDBC3 build 310 drivers (latest from jdbc.postgresql.org). >Can you try the following query: > >select 5::float8,asBinary('POINT(0 0)')::bytea > asBinary() already returns a bytea: #\df asbinary List of functions Schema | Name | Result data type | Argument data types --------+----------+------------------+--------------------- public | asbinary | bytea | geometry public | asbinary | bytea | geometry, text (2 rows) But, I tried your query and it, also, sends 84 bytes. dave ---------------------------------------------------------- This mail sent through IMP: https://webmail.limegroup.com/