Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id DC20AA01094 for ; Wed, 30 Nov 2011 10:37:10 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RVlHY-0001KW-JU for pgsql-jdbc@postgresql.org; Wed, 30 Nov 2011 14:37:10 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pAUEaop8009323; Wed, 30 Nov 2011 09:36:50 -0500 (EST) To: Mikko Tiihonen cc: pgsql-jdbc@postgresql.org Subject: Re: Bug when retrieving money datatype. In-reply-to: <4ED5D369.30902@nitorcreations.com> References: <4ED5D369.30902@nitorcreations.com> Comments: In-reply-to Mikko Tiihonen message dated "Wed, 30 Nov 2011 08:55:37 +0200" Date: Wed, 30 Nov 2011 09:36:50 -0500 Message-ID: <9322.1322663810@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201111/117 X-Sequence-Number: 22452 Mikko Tiihonen writes: > I was planning to add the binary format support for money to the > jdbc driver when I had some free time. It will solve all parsing > problems related to locale and give nice speed boost at the same time. I don't think that's exactly a magic bullet. Yes, it'll mean you don't need to know the locale's currency symbol or what it uses for decimal point, but how are you going to determine where the decimal point is in the binary representation? You'll still be dependent on knowing the server's lc_monetary locale. regards, tom lane