pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: mohand oubelkacem makhoukhene <mohand-oubelkacem@outlook.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Implement a new data type
Date: Tue, 11 Aug 2020 14:00:04 +0200
Message-ID: <433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at> (raw)
In-Reply-To: <PR3PR01MB69704C1002BC9916D3E11B58E0450@PR3PR01MB6970.eurprd01.prod.exchangelabs.com>
References: <PR3PR01MB69704C1002BC9916D3E11B58E0450@PR3PR01MB6970.eurprd01.prod.exchangelabs.com>

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






view thread (11+ messages)  latest in thread

Message-ID: <433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at>
Permalink:  ../433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at/
Also on:    postgresql.org/message-id/433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, mohand-oubelkacem@outlook.com
  Subject: Re: Implement a new data type
  In-Reply-To: <433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at>
  References: <PR3PR01MB69704C1002BC9916D3E11B58E0450@PR3PR01MB6970.eurprd01.prod.exchangelabs.com> <433af6fe4eca58b472a6872d3cee2d6e2a7e759a.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox