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 AEF139DC805 for ; Fri, 10 Mar 2006 12:05:58 -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 91931-08 for ; Fri, 10 Mar 2006 12:05:56 -0400 (AST) X-Greylist: delayed 00:24:00.878821 by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 392F89DC821 for ; Fri, 10 Mar 2006 12:05:56 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FHjq2-0001hv-SH for pgsql-jdbc@postgresql.org; Fri, 10 Mar 2006 16:47:34 +0100 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Mar 2006 16:47:34 +0100 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Mar 2006 16:47:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Marc Herbert Subject: Re: binary protocol was Performance problem with timestamps in result sets Date: Fri, 10 Mar 2006 16:49:44 +0100 Lines: 12 Message-ID: References: <00cc01c64376$7661ca40$c29c143e@w128mtec> <224f32340603091605x59673fdt9a8d69b4f5512c22@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:Y8wgxMzVoID9wbSGEbhmUjffxoQ= X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.349 required=5 tests=[AWL=0.096, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.349 X-Spam-Level: * X-Archive-Number: 200603/54 X-Sequence-Number: 14835 Marc Herbert writes: > To represent binary IEEE754's floats (4 bytes) without loss the > maximum required number of base10 digits is 9. For IEEE754's doubles > (8 bytes) it's 17. I don't know what is the "average" required number > of digits. Sorry, forgot to precise: that's just for the fraction. You need to add representations for sign and exponent.