X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2F3E09DCC21 for ; Tue, 21 Mar 2006 16:59:37 -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 64986-01-5 for ; Tue, 21 Mar 2006 16:59:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from trolak.mydnsbox2.com (ns1.mydnsbox2.com [207.44.142.118]) by postgresql.org (Postfix) with ESMTP id 38E079DCC79 for ; Tue, 21 Mar 2006 16:59:33 -0400 (AST) Received: from [192.168.1.227] (68.143.134.146.nw.nuvox.net [68.143.134.146]) (authenticated (0 bits)) by trolak.mydnsbox2.com (8.11.6/8.11.6) with ESMTP id k2LLLGW14888; Tue, 21 Mar 2006 15:21:16 -0600 Message-ID: <44206933.6050603@dunslane.net> Date: Tue, 21 Mar 2006 15:59:31 -0500 From: Andrew Dunstan User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Eisentraut CC: pgsql-hackers@postgresql.org, Bruce Momjian , Martijn van Oosterhout Subject: Re: [GENERAL] A real currency type References: <200603211349.k2LDnIR15871@candle.pha.pa.us> <200603212130.52525.peter_e@gmx.net> In-Reply-To: <200603212130.52525.peter_e@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.098 required=5 tests=[AWL=0.098] X-Spam-Score: 0.098 X-Spam-Level: X-Archive-Number: 200603/888 X-Sequence-Number: 81286 Peter Eisentraut wrote: >Bruce Momjian wrote: > > >>This looks very interesting. Should we add it to the core >>distribution? >> >> > >I think such types would be better implemented as some sort of >structured type, possibly with constructors and methods and all the >other stuff that SQL talks about. We don't have all of that yet -- >maybe we don't need all of it immediately -- but before we start >endorsing many of these types I'd like to see some consideration given >to this issue. > > > Yeah, looks interesting but let's find the wrinkles. I was wondering if it might have relevance to what I wanted to do with enumeration types, i.e. we would tag each one with its particular enumeration id. I also don't like the idea of it being done with user tables - if this is core material then the tags should go in the catalog, ISTM. cheers andrew