Re: Real vs Int performance - Mailing list pgsql-performance

From Tom Lane
Subject Re: Real vs Int performance
Date
Msg-id 21353.1296137891@sss.pgh.pa.us
Whole thread Raw
In response to Re: Real vs Int performance  (David Greco <David_Greco@harte-hanks.com>)
Responses Re: Real vs Int performance  (Shaun Thomas <sthomas@peak6.com>)
List pgsql-performance
David Greco <David_Greco@harte-hanks.com> writes:
> Right you are. Kettle is turning the number(11) field from Oracle into
> a BigNumber, which is a decimal. If I cast the field into an Integer
> in Kettle and keep the field an integer in Postgres, I get good
> performance. Suspect the correct course of action would simply be to
> make number(11) fields in Oracle numeric(11,0) fields in Postgres.

Not if you can persuade the client-side code to output integers as
integers.  "numeric" type is orders of magnitude slower than integers.

            regards, tom lane

pgsql-performance by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: Why I lost the last pg_xlog file?
Next
From: Shaun Thomas
Date:
Subject: Re: Real vs Int performance