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 1k5UUr-0002WA-J9 for pgsql-general@arkaria.postgresql.org; Tue, 11 Aug 2020 13:39:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5UUq-0008UM-Ix for pgsql-general@arkaria.postgresql.org; Tue, 11 Aug 2020 13:39:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5UUo-0008UE-VD for pgsql-general@lists.postgresql.org; Tue, 11 Aug 2020 13:39:20 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5UUk-00065s-LS for pgsql-general@lists.postgresql.org; Tue, 11 Aug 2020 13:39:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2D8985C0069; Tue, 11 Aug 2020 09:39:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 11 Aug 2020 09:39:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=y VE6BmosC/leTAs9sTu7GPFz8P69ktnkxnHRofKfE5c=; b=BXdNBi3LnShqjWJfS mj9QyFeCbdeIhazbMQlz2AaFZYjz6O42JrYiMlK2PoBtoUnpsya8F2JSfORlFHx8 qu26AdQx4e4w4FXZna3ZFHUU0Bin9UX6miQakfArkFU9Ck79+yXhOpIiRpj8uIXy X3qG1NaXw7qSpl9AQr6qDkmvChbv4daN8IFleWwgg+V4Xu0dIq98tyRj5lKNh+I7 HBiTZlOandc8ZlW7jUT9JTj2OMKaz1m3k6o5VXr15iCOnARvyORtN6tol1DSlAmI KzSgCU8RhPuA9t6FQan9EokrJ6dZ9wsiEUCHv+TmXGXuXN1bh8PjohtAGypFDtBz LrQ3w== 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=fm3; bh=yVE6BmosC/leTAs9sTu7GPFz8P69ktnkxnHRofKfE 5c=; b=Mf2qfIwqYEmV+vW6qTL8akdyp8YNZVKg76MA1mIVsEVOeif4ivghdrbNC AVchXpUU1JXb6tPfshmlBaskdn+PhT7cPTBW93P6hK6jo2FQYrmRoVv+mDJ9S7q1 ByBvbPIgzGgE0KXhqgGWYE7GdKGfBZoKNYNxibQipPzcR68ryzryMzoDyI0bRYJI A6JlbE2FMa0Ve3A8D0okTGdj6IJ9jyxUkHRtyArdelD290YX4vvEDhliN1YkvMUG 4KMnyb7zwRxnUTKG7Xq8UIfoWtTdd1jNMB79nbIPxUITLB+Y7e3vHYR26jmlBVzC yAVEjYhS99GU9GCnpOCSB1kZOJcwQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrledtgdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeehnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhephfekgfdtfeetkeffledtfeeltdegfeekffeitdekjeet fffgudetgeeghfegudfgnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc fkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 9AD7E30600B4; Tue, 11 Aug 2020 09:39:11 -0400 (EDT) Subject: Re: Implement a new data type To: mohand oubelkacem makhoukhene , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <900ab380-739c-1ff2-73d2-46e8dce4388c@aklaver.com> Date: Tue, 11 Aug 2020 06:39:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/11/20 4:31 AM, mohand oubelkacem makhoukhene wrote: > Hello; > I whould like to implement a new data type next to char, number, > varchar... A Money type. One that is different from the current one?: https://www.postgresql.org/docs/12/datatype-money.html > So i'll have to change the source code, but i don't know which fonctions > i need to change and which part to work on. > I need some help to implement this new data type. > Thank you and best regards > Mohand > > > -- Adrian Klaver adrian.klaver@aklaver.com