Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 31B7765003C for ; Tue, 29 Jul 2008 18:24:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96375-05 for ; Tue, 29 Jul 2008 18:24:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail2.fintrading.com (mail.fintrading.com [195.2.100.100]) by postgresql.org (Postfix) with ESMTP id 59DC664FD0A for ; Tue, 29 Jul 2008 18:24:19 -0300 (ADT) Received: from [192.168.2.226] (unknown [81.198.70.254]) by mail2.fintrading.com (Postfix) with ESMTP id 7D87D3811D6C; Wed, 30 Jul 2008 00:23:32 +0300 (EEST) Subject: Re: numeric type From: Peter Zeltins To: Kris Jurka Cc: pgsql-jdbc@postgresql.org In-Reply-To: References: <005b01c8ea53$f64a9fd0$e2dfdf70$@com> <001d01c8f14d$cdd715a0$698540e0$@com> Content-Type: text/plain Date: Wed, 30 Jul 2008 00:23:33 +0300 Message-Id: <1217366613.5193.11.camel@peter-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-greatnowhere.com-MailScanner: Found to be clean X-greatnowhere.com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.9, required 6, BAYES_00 -5.00, RDNS_NONE 0.10) X-greatnowhere.com-MailScanner-From: peter@greatnowhere.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/66 X-Sequence-Number: 18851 > > OK, I hear ya. How about allowing user to set the default precision and > > scale values for "numeric" type? Not sure how this would be done in JDBC > > world but should be doable. > > You could add URL parameters like unspecifiedNumericPrecision=1000 and > unspecificedNumericScale=500, but the tradeoff is how much work is it to > add these options to the URL parsing code and then pass them around, add > it to the datasource implementation, add it to the documentation, and ... > > If there was some big important app that everyone wanted to use that blew > up on this I'd bet we'd do it, but I haven't heard a whole lot of > complaints about this problem. I would assume this is not a major issue for most. Personally I ran into this problem when writing automated PG->MS Access converter (Jackcess is the only lib capable of creating MDB files on Linux/BSD) and it bailed on numeric fields. Peter