X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 137E511F66E6 for ; Mon, 24 Apr 2006 16:49:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 78873-01-7 for ; Mon, 24 Apr 2006 16:48:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 5B0D111F732A for ; Mon, 24 Apr 2006 16:00:53 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 6F78830E5A; Mon, 24 Apr 2006 21:00:52 +0200 (MET DST) From: "DanixDefcon5" X-Newsgroups: pgsql.interfaces.jdbc Subject: Money deprecation and cast problem Date: 24 Apr 2006 11:59:08 -0700 Organization: http://groups.google.com Lines: 16 Message-ID: <1145905148.140026.134730@g10g2000cwb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy0.guanajuato.gob.mx:80 (squid/2.5.STABLE9) Complaints-To: groups-abuse@google.com Injection-Info: g10g2000cwb.googlegroups.com; posting-host=148.223.74.61; posting-account=gKfD2w0AAAAAjCTqT4wEJZH0H2-omR-N To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/155 X-Sequence-Number: 15089 Ok, I've been using Postgres for quite some time now (about 6 years-ish), except for a MySQL period b/c of work requirements. However, I never managed to use some of the more special types in the DBMS, like 'money'. I know that the 'money' type is now deprecated, but I wonder why it is, and also ... how was it supposed to cast any other data type to 'money' anyway??? I checked the function list, per \df and couldn't find any function to do so, even though the money data type is basically an int4 with the decimal point moved two places to the left. So.... - Why did they deprecate it? and - Why were there no functions to convert data types *to* money? There were plenty of possible casts *from* money...