Re: Performance difference between char and int2 columns - Mailing list pgsql-general

From Alban Hertroys
Subject Re: Performance difference between char and int2 columns
Date
Msg-id 44856E9C.50707@magproductions.nl
Whole thread Raw
In response to Performance difference between char and int2 columns  ("Yavuz Kavus" <yavuzkavus@gmail.com>)
List pgsql-general
Yavuz Kavus wrote:
> hi everybody.

> The problem is that:
> my both table has 10 records.
> when i run this query on first table :
>    select * from tb_section_phones;
>    it lasts 0.02 sec.
> when i run this query on second table :
>    select * from tb_section_phones_temp;
>    it lasts 0.13 sec.
>
> 6.5 times slower.
> why so performance difference?
> should i prefer int as column type?

Did you ANALYZE your tables?
What version of Postgres is this?

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

// Integrate Your World //

pgsql-general by date:

Previous
From: Kenneth Downs
Date:
Subject: Re: Best open source tool for database design / ERDs?
Next
From: "pobox@verysmall.org"
Date:
Subject: Re: php 5.1.4 w/ PostgreSQL 8.1.4