Re: misbehaving planer?

From: "Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at>
To: "Darcy Buskermolen" <darcyb(at)commandprompt(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: misbehaving planer?
Date: 2006-10-20 15:22:33
Message-ID: E1539E0ED7043848906A8FF995BDA57901726426@m0143.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> db=# \d s_ps.tbl_ps_type_1
> Table "s_ps.tbl_ps_type_1"
...
> Check constraints:
> "tbl_ps_typ_1_type_check" CHECK (type = 1)
> Inherits: tbl_ps
...
> myyearbook=# EXPLAIN ANALYZE SELECT uid FROM tbl_ps WHERE
> type = 1 and
> normalized_text='bush';
>
>
>
> QUERY PLAN
...
> -> Index Scan using index_b_on_type_2 on
> tbl_ps_type_2 tbl_ps
> (cost=0.00..4.53 rows=1 width=4) (actual time=0.099..0.099
> rows=0 loops=1)
> Index Cond: ((normalized_text)::text = 'bush'::text)
> Filter: (type = 1)

Do you have corresponding constraints on all other table partitions ?

btw. I doubt that the many partial indexes are really helpful here.
What you are doing basically only replaces one btree header page.

Andreas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-10-20 15:26:06 Re: misbehaving planer?
Previous Message Darcy Buskermolen 2006-10-20 15:00:32 misbehaving planer?