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 1mpCTw-00026Y-16 for pgsql-general@arkaria.postgresql.org; Mon, 22 Nov 2021 16:47:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mpCTv-0000EA-0O for pgsql-general@arkaria.postgresql.org; Mon, 22 Nov 2021 16:47:51 +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 1mpCTu-0000E0-Ly for pgsql-general@lists.postgresql.org; Mon, 22 Nov 2021 16:47:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpCTs-000298-GI for pgsql-general@lists.postgresql.org; Mon, 22 Nov 2021 16:47:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AMGliMb3756996; Mon, 22 Nov 2021 11:47:44 -0500 From: Tom Lane To: Adrian Klaver cc: Ron , "pgsql-general@lists.postgresql.org" Subject: Re: insert column monetary type ver 2 In-reply-to: <2b715bbd-02f9-a8b1-7f50-a41ab51efcbf@aklaver.com> 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> <150ff686-0239-4700-9322-24081f054de8@gmail.com> <2b715bbd-02f9-a8b1-7f50-a41ab51efcbf@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Mon, 22 Nov 2021 08:19:32 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3756994.1637599664.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 22 Nov 2021 11:47:44 -0500 Message-ID: <3756995.1637599664@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Adrian Klaver writes: > On 11/21/21 19:21, Ron wrote: >> Why then does the money type exist?  At the very least, why isn't it >> deprecated? > It was at one point: > https://www.postgresql.org/docs/8.2/datatype-money.html > Not entirely sure why it was revived. You can search the mailing list > archive for discussions on this. I think we concluded there was no appetite for actually removing it. 8.3 fixed the very worst problem that had led to deprecation, namely making it an 8-byte integer not 4-byte, so we concluded that it had at least some excuse to live. As already noted, if it doesn't do what you want, don't use it. regards, tom lane