Here is a conversation I started in Stackoverflow:
We are in the process of evaluating a migration from Oracle Enterprise Edition to Postgresql. One of the most used datatypes we use is NUMBER (unrestricted - No precision/No scale).
I am looking at orafce and I do not see an implementation of NUMBER even though I see implementations for DATE and VARCHAR2.
Does anyone know if there is a reason why NUMBER was not implemented in the extension?
Does anyone know if is possible to redefine using a Domain? I tried the following and basic testing gave good results:
CREATE DOMAIN NUMBER AS BIGINT;
CREATE TABLE A_NUMBER_TABLE(A_NUMBER NUMBER);
template1=# INSERT INTO A_NUMBER_TABLE VALUES(12222222222222222); INSERT 0 1
I got what I expected, but I am not sure it is good enough.
This seems too simple. Does anyone have any input on this topic?
Thanks in advance, Thomas