Re: Implement a new data type

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: mohand oubelkacem makhoukhene <mohand-oubelkacem(at)outlook(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Implement a new data type
Date: 2020-08-11 12:00:04
Message-ID: 433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2020-08-11 12:01:27 Re: Implement a new data type
Previous Message mohand oubelkacem makhoukhene 2020-08-11 11:31:03 Implement a new data type