Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mozu8-0005ua-MH for pgsql-general@arkaria.postgresql.org; Mon, 22 Nov 2021 03:22:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mozu5-0002AT-Up for pgsql-general@arkaria.postgresql.org; Mon, 22 Nov 2021 03:22:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mozu5-0002AJ-E9 for pgsql-general@lists.postgresql.org; Mon, 22 Nov 2021 03:22:01 +0000 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1moztz-0003xT-UK for pgsql-general@lists.postgresql.org; Mon, 22 Nov 2021 03:22:00 +0000 Received: by mail-ot1-x334.google.com with SMTP id a23-20020a9d4717000000b0056c15d6d0caso26762801otf.12 for ; Sun, 21 Nov 2021 19:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=25+7d0tB2sEFVct9R+p7cqyPBLXBzRxf3gTkuN3VWe4=; b=asmxclp46Xf5AMiO70HflO4932y/HS6wfk8Fef2K6omHi+DLsZ52JE9jDuHaJt8jVd eo3enP2w7Pe8WY6EUlL+x1LQ1wLB6WGtFpQelZrdBOwCuEDZsW2YDkQBtb7v0OOAtTGZ 0oKlXgrWVeCaPrPI0LY6I3j5H5L7Hzs4E+QUBhT4EN8r6gLxkw/8KxMGqnDuiLMacml8 ZX7m4d801Ia11pguhBx5sAEslkWUrjm2tHMajBRvpcE15g7qryN9omDysy8oAXertyU4 HBI/F8Iv1f0tsc8Z4M+Z6Pauq8o+TC3gncYaTVoC834hAoR+CBzAG4jpkhiy5g60WB5c JBfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=25+7d0tB2sEFVct9R+p7cqyPBLXBzRxf3gTkuN3VWe4=; b=l5EdnhpnCAmfsV1BPmZE2t5mci3nm5yJ/cgSYVkIDgT6+nXHA4vqLl2+gSgCh7hmWy Nwvu37gZHJykfGKg+HZ21IFGLGc2xg+BhZc2mPYWdLybECUEDy9Z0rLKrTWwu0uP2zNc a34mFp7GC+ESQUm+vjC0ZcaMi7Cg2xrsNNb6+X9iVuLxbITnOoBUgtMtHnyRZK2/gvr8 yKd1Sf0WQOBxDmNUaDRNE5EpecJnr58vm0BZvlvKYOj/NezJHY5/b0HGn4oEfe/7759B G7VNnKWEUAui5ae2ljY3KDMTmShprXNTDtCircf6BgxFUeQP+6iKc6GyAGVmXlFPWxRP 2Cmg== X-Gm-Message-State: AOAM532XQugEOBQWC89UaJMStRnnXgbgzBRH/q2UCCabttn1hZAm/J1L +fuTpkeIR0fBLmSTUecGZVDQK4u5CCE= X-Google-Smtp-Source: ABdhPJw4//uT5bSRipc1en3AFdxUxO99H+zmdm0vqjZCovntNXltGaL0zSYDKUdyUoLoDuxuF/qGPQ== X-Received: by 2002:a9d:60f:: with SMTP id 15mr21049595otn.266.1637551314845; Sun, 21 Nov 2021 19:21:54 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id n26sm652158ooq.36.2021.11.21.19.21.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Nov 2021 19:21:54 -0800 (PST) Subject: Re: insert column monetary type ver 2 To: "pgsql-general@lists.postgresql.org" References: <3175389.1637427716@sss.pgh.pa.us> <6ab247a8-1524-6e55-c7fd-1d296b1584c3@gmail.com> <3443422.1637512030@sss.pgh.pa.us> <74183538-0a51-9580-87a8-8b33274c9159@gmail.com> From: Ron Message-ID: <150ff686-0239-4700-9322-24081f054de8@gmail.com> Date: Sun, 21 Nov 2021 21:21:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------D3FF56BDC722726FA5C540F6" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------D3FF56BDC722726FA5C540F6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 11/21/21 8:43 PM, David G. Johnston wrote: > On Sunday, November 21, 2021, Ron > wrote: > > On 11/21/21 7:33 PM, Adrian Klaver wrote: > > On 11/21/21 17:08, Ron wrote: > > On 11/21/21 10:27 AM, Tom Lane wrote: > > Ron > writes: > > > The contrary argument is that people tend not to like > "best guess" > behavior when working with monetary amounts. > > > Best Guess is relative.  Breaking because of "ASCII Space" > instead of "narrow no-break space" is definitely Not Right. > > > The people I have worked for have forgiven me many sins, messing > up the money is not one of them. > > > Not inserting this record is also messing up the money. > > > Adding processing smarts here is Not Definitely Right.  And the status quo > is Not Definitely Wrong.  As long as we don’t have a round-trip problem > I’d lean toward maintaining the status quo and accept the complaints that > we aren’t being as flexible as we could be with our money type.  That we > interpret the LC setting exactly is a defensible position to take. Which means *that* is broken. > Especially since money is a type we advise people avoid anyway.  We can > just add this to the list of reasons why. Why then does the money type exist?  At the very least, why isn't it deprecated? -- Angular momentum makes the world go 'round. --------------D3FF56BDC722726FA5C540F6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

On 11/21/21 8:43 PM, David G. Johnston wrote:
On Sunday, November 21, 2021, Ron <ronljohnsonjr@gmail.com> wrote:
On 11/21/21 7:33 PM, Adrian Klaver wrote:
On 11/21/21 17:08, Ron wrote:
On 11/21/21 10:27 AM, Tom Lane wrote:
Ron <ronljohnsonjr@gmail.com> writes:

The contrary argument is that people tend not to like "best guess"
behavior when working with monetary amounts.

Best Guess is relative.  Breaking because of "ASCII Space" instead of "narrow no-break space" is definitely Not Right.

The people I have worked for have forgiven me many sins, messing up the money is not one of them.

Not inserting this record is also messing up the money.


Adding processing smarts here is Not Definitely Right.  And the status quo is Not Definitely Wrong.  As long as we don’t have a round-trip problem I’d lean toward maintaining the status quo and accept the complaints that we aren’t being as flexible as we could be with our money type.  That we interpret the LC setting exactly is a defensible position to take.

Which means that is broken.

Especially since money is a type we advise people avoid anyway.  We can just add this to the list of reasons why.

Why then does the money type exist?  At the very least, why isn't it deprecated?

--
Angular momentum makes the world go 'round.
--------------D3FF56BDC722726FA5C540F6--