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 1mpC2f-00008O-0L for pgsql-general@arkaria.postgresql.org; Mon, 22 Nov 2021 16:19:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mpC2d-0006Bn-Si for pgsql-general@arkaria.postgresql.org; Mon, 22 Nov 2021 16:19:39 +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 1mpC2d-0006Be-Hw for pgsql-general@lists.postgresql.org; Mon, 22 Nov 2021 16:19:39 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpC2a-0001v0-ND for pgsql-general@lists.postgresql.org; Mon, 22 Nov 2021 16:19:38 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0C0545C0266; Mon, 22 Nov 2021 11:19:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 22 Nov 2021 11:19:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=i LCCkx9TjNsR7AZ/+8VdtYLHhblQnBvAKiqhbOwgw9Q=; b=qR90sR07fVCRL13Nj fiKUUpxEGE2H6BgUDL5N4DS16P634RFdEXBK//Rd984jNkf78BXRx0S5IuaSNs0F 3QmMfQv19zqJnR4YyMT2rW0v/DefKLpJVP8I9mSOpGY5Iwpr9ubZhIEymgXExStn UjjKpUaspnI6yNrONF3iPwMaMP7BrzMSi34sBl8uChxAeGlYosFMSFe65zTDDnSs lW6qLnY7rMn2AVPaWYJJ0DhQ3jqUS8cxVl1Vs2xAhXWt+/RmLDCIZuZoCwM9vRtO RdPyQakbrAdBJ9MoTSpaPCDybbFHgdmDRRNTu3jvehWCauELful3faG+n3jorXwd AD5Mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=iLCCkx9TjNsR7AZ/+8VdtYLHhblQnBvAKiqhbOwgw 9Q=; b=eE0/4Qiy0KqMfxrHy30aCk7/A6EyN+/azIS+8igiM+50CX9mT+4HG4+kt BdiG0j/Ci32ySEM51Ef8asQmbAnHG0Acfsme4+ozfUqhZu2GSpWqvROBRY2Qhb5b 8PbLOJJB7jbGSoc1wHafVSHcDSRQozcd+umBmpdLDRLNIE0CvrQVXTBNKa/mbgiO RKB4Lmnk9myIlas3GBwJzw66/QhQfOVkmgNuIFe0cr7gnVfZO1ILq9Yz+HTPOPoj qDrILnIo768mHTnQ1vNwlh7RAYdQKbbBIwrryO+wpUAe5XlKV8lAEb1dxGLhs8NK +Vj5ef5uU1+QJlfEkwj7/sb5LZjbQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeeggdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeelkeegjefhke etheefudevteehiedvudehkeduleetfedvffeuhedtvdegtdeffeenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtgho mh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Nov 2021 11:19:33 -0500 (EST) Message-ID: <2b715bbd-02f9-a8b1-7f50-a41ab51efcbf@aklaver.com> Date: Mon, 22 Nov 2021 08:19:32 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: insert column monetary type ver 2 Content-Language: en-US To: Ron , "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> <150ff686-0239-4700-9322-24081f054de8@gmail.com> From: Adrian Klaver In-Reply-To: <150ff686-0239-4700-9322-24081f054de8@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/21/21 19:21, Ron wrote: > > > > 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? 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. Bottom line is if you don't want surprises use numeric and format the output on the client side. > > -- > Angular momentum makes the world go 'round. -- Adrian Klaver adrian.klaver@aklaver.com