Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong? - Mailing list pgsql-hackers

From Shaun Thomas
Subject Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?
Date
Msg-id 53E0EDC3.4050200@optionshouse.com
Whole thread Raw
In response to Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?  (Mark Kirkwood <mark.kirkwood@catalyst.net.nz>)
Responses Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?
Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?
List pgsql-hackers
On 08/05/2014 12:56 AM, Mark Kirkwood wrote:

> The moral of the story for this case is that mapping Oracle to Postgres
> datatypes can require some careful thought. Using 'native' types (like
> integer, float8 etc) will generally give vastly quicker performance.

We've seen a lot of this ourselves. Oracle's NUMERIC is a native type, 
whereas ours is emulated. From the performance, it would appear that 
REAL is another calculated type.

At least you used INT though. I've seen too many Oracle shops using 
NUMERIC in PostgreSQL because it's there, and suffering major 
performance hits because of it.

That said, the documentation here says FLOAT4 is an alias for REAL, so 
it's somewhat nonintuitive for FLOAT4 to be so much slower than FLOAT8, 
which is an alias for DOUBLE PRECISION.

http://www.postgresql.org/docs/9.3/static/datatype.html

Not sure why that would be.

-- 
Shaun Thomas
OptionsHouse, LLC | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604
312-676-8870
sthomas@optionshouse.com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Audit of logout
Next
From: testman1316
Date:
Subject: Re: PostrgeSQL vs oracle doing 1 million sqrts am I doing it wrong?