X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 95C139DC8A5 for ; Thu, 9 Mar 2006 20:05:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03057-05 for ; Thu, 9 Mar 2006 20:05:49 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.195]) by postgresql.org (Postfix) with ESMTP id 6659C9DC88D for ; Thu, 9 Mar 2006 20:05:44 -0400 (AST) Received: by uproxy.gmail.com with SMTP id a2so319169ugf for ; Thu, 09 Mar 2006 16:05:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L7EJGuAAu6IJ5LBMZsknq5r+9SK7UnQEMEs7oIFqKyaERy5w0uz5Z/SWjtc/F36Lf6Up3ugrpSTyt4XxHqKlpWC7LZjW0ciU7HvgBad0+mepL9WJp8zUORH6IHzLwcNz5pYUoJU94MIpYPp0gBgyfDAs2+SehmRZgeo5RIU2YfM= Received: by 10.66.245.7 with SMTP id s7mr1525359ugh; Thu, 09 Mar 2006 16:05:47 -0800 (PST) Received: by 10.67.30.2 with HTTP; Thu, 9 Mar 2006 16:05:47 -0800 (PST) Message-ID: <224f32340603091605x59673fdt9a8d69b4f5512c22@mail.gmail.com> Date: Fri, 10 Mar 2006 01:05:47 +0100 From: "Thomas Dudziak" To: pgsql-jdbc@postgresql.org Subject: Re: binary protocol was Performance problem with timestamps in result sets In-Reply-To: <00cc01c64376$7661ca40$c29c143e@w128mtec> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <00cc01c64376$7661ca40$c29c143e@w128mtec> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200603/49 X-Sequence-Number: 14830 On 3/9/06, mikael-aronsson wrote: > How about the actual transport cost difference between text and binary > protocols ? it may not be any big difference though, and many times text > representation can be smaller then a binary protocol. Really ? I would have thought its vice versa. E.g. a float is usualy 4 (or 8) bytes in binary, but can be a lot longer in text depending on the format. > I do not think it would give much though to use the binary protocol as Ja= va > is not very good when it comes to converting binary data back to native > values unless it is serialized or you start to mess around with nio buffe= rs, > so in the end I do not think there would be much difference in performanc= e. Personally I would be interested in whether a binary protocol impl in the JDBC driver would bring benefits or not for the other, simpler types (int, string, ...). If they don't suffer, then it might actually be worthwhile to investigate a binary impl. That is being said of course from a pure user perspective - I have no insight whatsoever in the core workings of the JDBC driver. cheers, Tom