Extended unit - Mailing list pgsql-general

From Pailloncy Jean-Gerard
Subject Extended unit
Date
Msg-id 1E399944-6EB5-11D9-8B82-000A95DE2550@rilk.com
Whole thread Raw
Responses Re: Extended unit  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Extended unit  (Roman Neuhauser <neuhauser@chello.cz>)
List pgsql-general
Hi,

My question is purely theoretical.

I add use in my time in University some software that use "extended
type".
For each variable, we define the mandatory "classic type" as integer,
float, double array of.
And we define an optional "extended type" as the unit in the MKSA
system (Meter, Kilogram, Second, Ampere) or any other unit we would
have previously define (eg. Currency).

This "extended type" was wonderful, because there was warning/error if
"extend type" does not match in any computation: you can not add apple
to orange.

I would appreciate to have such system in PostgreSQL.

Do you think, it is feasible ? unrealistic ?
Any comment ?

Cordialement,
Jean-Gérard Pailloncy

pgsql-general by date:

Previous
From: Nicolai Tufar
Date:
Subject: Re: SCHEMA compatibility with Oracle/DB2/Firebird
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Extended unit