Re: Implement a new data type

2020-08-12 Thread raf
On Wed, Aug 12, 2020 at 12:44:21PM -0400, Philip Semanchuk wrote: > > On Aug 11, 2020, at 8:01 PM, raf wrote: > > > > On Tue, Aug 11, 2020 at 06:38:39AM -0700, Miles Elam > > wrote: > > > >> Also of note: PostgreSQL already has a money type ( > >>

Re: Implement a new data type

2020-08-12 Thread Philip Semanchuk
> On Aug 11, 2020, at 8:01 PM, raf wrote: > > On Tue, Aug 11, 2020 at 06:38:39AM -0700, Miles Elam > wrote: > >> Also of note: PostgreSQL already has a money type ( >> https://www.postgresql.org/docs/current/datatype-money.html) >> But you shouldn't use it ( >>

Re: Implement a new data type

2020-08-11 Thread Chris Travers
On Wed, Aug 12, 2020 at 2:01 AM raf wrote: > On Tue, Aug 11, 2020 at 06:38:39AM -0700, Miles Elam < > miles.e...@productops.com> wrote: > > > Also of note: PostgreSQL already has a money type ( > > https://www.postgresql.org/docs/current/datatype-money.html) > > But you shouldn't use it ( > >

Re: Implement a new data type

2020-08-11 Thread raf
On Tue, Aug 11, 2020 at 06:38:39AM -0700, Miles Elam wrote: > Also of note: PostgreSQL already has a money type ( > https://www.postgresql.org/docs/current/datatype-money.html) > But you shouldn't use it ( > https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_money). > > I only bring

Re: Implement a new data type

2020-08-11 Thread Adrian Klaver
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

Re: Implement a new data type

2020-08-11 Thread Miles Elam
Also of note: PostgreSQL already has a money type ( https://www.postgresql.org/docs/current/datatype-money.html) But you shouldn't use it ( https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_money). I only bring it up so that you can know to make your money type a slightly different

Re: Implement a new data type

2020-08-11 Thread Pavel Stehule
Hi Ășt 11. 8. 2020 v 13:31 odesĂ­latel mohand oubelkacem makhoukhene < mohand-oubelka...@outlook.com> napsal: > Hello; > 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

Re: Implement a new data type

2020-08-11 Thread Laurenz Albe
On Tue, 2020-08-11 at 11:31 +, 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