Strange behavior of child table.

From: Jenish <jenishvyas(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Strange behavior of child table.
Date: 2011-06-01 06:07:29
Message-ID: BANLkTikmOw=wmWe2XkzoaFkRxxSO0hu2Lg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi All,

I have created partition on table Round_Action , which has 3 inherited
partition tables.

When I am firing a simple select query with limit on parent table it is
taking huge time to execute. But when I am firing this query directly on
inherited table it is taking few milliseconds.

EXP.

select * from Round_Action where action_id =50000 limit 100 → execution time
80 sec

select * from Round_Action_CH1 action_id =50000 limit 100 → execution time
0.1 sec

Round_Action is the parent table and has no record in the tables, all the
records are lying in child tables.

Table is having index on action_id.

Partition is trigger based.

Postgres Version : (PostgreSQL) 8.4.6

Why there is difference in execution time? What I am doing wrong?

--
Thanks & regards,
JENISH VYAS

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Greg Smith 2011-06-01 10:23:28 Re: Strange behavior of child table.
Previous Message Kevin Grittner 2011-05-31 18:56:16 Re: Server crash... trying to figure it out