Re: Implement a new data type

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Implement a new data type
Дата
Msg-id 433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at
обсуждение исходный текст
Ответ на Implement a new data type  (mohand oubelkacem makhoukhene <mohand-oubelkacem@outlook.com>)
Список 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 по дате отправления:

Предыдущее
От: mohand oubelkacem makhoukhene
Дата:
Сообщение: Implement a new data type
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Implement a new data type