Re: Mapping Oracle types to PostgreSQL types - Mailing list pgsql-hackers

From Andreas Pflug
Subject Re: Mapping Oracle types to PostgreSQL types
Date
Msg-id 3F8FF378.4080600@pse-consulting.de
Whole thread Raw
In response to Re: Mapping Oracle types to PostgreSQL types  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
List pgsql-hackers
Shridhar Daithankar wrote:

> Jean-Michel POURE wrote:
>
>> Dear friends,
>>
>> I would like to port Compiere CRM from Oracle to PostgreSQL (and 
>> release it for free).
>>
>> At first I would like to convert the data schema. This is not 
>> difficult as Compiere is written using portable types like NUMBER 
>> (i,d) which can be replaced by NUMERIC (i,d), etc... A series of 
>> Search/Replace is sufficiant. There are other solutions in Contrib to 
>> connect to Oracle and export the data (Bruce). Don't blame me to 
>> search in another (silly) direction...
>
>
> Rather than declaring numeric, create them as integer/float of 
> appropriate size and add appropriate constraints. Numeric can be 
> slower for large data load w.r.t native integers.


float is *not* an alternative to numeric. While integer or int8 should 
be usable for NUMBER(i), the non-rounding precision of numeric is vital 
for such an application.

Regards,
Andreas




pgsql-hackers by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: Mapping Oracle types to PostgreSQL types
Next
From: Andrew Sullivan
Date:
Subject: Re: Some thoughts about i/o priorities and throttling vacuum