Re: Implement a new data type - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Implement a new data type
Date
Msg-id 433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at
Whole thread Raw
In response to Implement a new data type  (mohand oubelkacem makhoukhene <mohand-oubelkacem@outlook.com>)
List pgsql-general
On Tue, 2020-08-11 at 11:31 +0000, mohand oubelkacem makhoukhene wrote:
> I whould like to implement a new data type next to char, number, varchar... A Money type. 
> 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.

You don't need to change the source, you could create an extension
using a shared library that can be loaded into the server at run time.

The documentation has more:
https://www.postgresql.org/docs/current/xfunc-c.html#XFUNC-C-BASETYPE
https://www.postgresql.org/docs/current/extend-extensions.html
https://www.postgresql.org/docs/current/extend-pgxs.html

Yours,
Laurenz Albe




pgsql-general by date:

Previous
From: mohand oubelkacem makhoukhene
Date:
Subject: Implement a new data type
Next
From: Pavel Stehule
Date:
Subject: Re: Implement a new data type