Re: About the MONEY type

From: Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>
To: Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: About the MONEY type
Date: 2016-12-19 02:30:23
Message-ID: 9a57a26d-cf9a-90bc-34e2-a9a0f5e4dc14@archidevsys.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 19/12/16 14:17, Rob Sargent wrote:
>> On Dec 18, 2016, at 5:23 PM, Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz> wrote:
>>
>> On 18/12/16 12:25, Bruce Momjian wrote:
>>> On Wed, Nov 30, 2016 at 01:35:12PM -0800, John R Pierce wrote:
>>>> note, btw, TIMESTAMP WITH TIME ZONE doesn't actually store the timezone...
>>>> rather, it converts it to an internal representation of GMT, and then converts
>>>> it back to display time at the client's current (or specified) time zone.
>>> Right, TIMESTAMP WITH TIME ZONE converts the timestamp value to the
>>> local time zone on output. Imagine a monetary type that converted the
>>> money amount to local currency on output --- that would be cool.
>>>
>> Hmm...
>>
>> Would need to know the appropriate conversion rate. the 2 obvious dates/times, on entry and now, may neither be the one wanted.
>>
>> Also, often the buy/sell conversion rates are not the same!
>>
>> Am sure there also other issues.
>>
>> I don't think automatic conversion is as easy as you make it out to be.
>>
>>
>>
>> Cheers,
>>
>> Gavin
>>
> Bets on how serious Mr. Pierce was are currently trending in Vegas.
>
:-)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Paolo Saudin 2016-12-19 12:28:09 pgAdmin 4 - auto disconnect
Previous Message Jong-won Choi 2016-12-19 01:29:58 Re: Concatenating NULL with JSONB value return NULL