> I tried to subscribe to pgsql-performance, but there seems to be
> something wrong with the majordomo, so I'm sending to general too,
> where I'm already subscribed.
Well, I got your e-mail, so obviously you're subscribed to Performance.
> But when doing a search with objectid, class and field, it doesn't use
> the idx_cjm_object1 index.
> db=# explain analyze select * from cjm_object where objectid=4534 and
> class=12 and field='paroid'; QUERY PLAN
explain analyze select * from cjm_object where objectid=4534::BIGINT and
class=12 and field='paroid';
Sometimes the planner needs a little extra help on BIGINT fields. This
problem is fixed in 8.0.
Aglio Database Solutions
In response to
pgsql-performance by date
|Next:||From: Sven Willenberger||Date: 2004-12-13 06:13:43|
|Subject: Using LIMIT changes index used by planner|
|Previous:||From: Tomas =?iso-8859-1?q?Sk=E4re?=||Date: 2004-12-12 08:32:25|
|Subject: Re: [GENERAL] Query is not using index when it should|
pgsql-sql by date
|Next:||From: Bruce Momjian||Date: 2004-12-13 03:13:42|
|Subject: Re: Unresolved external: tgetent|
|Previous:||From: Tom Lane||Date: 2004-12-13 02:45:49|
|Subject: Re: parse error at or near "(" -- Huh??? |
pgsql-general by date
|Next:||From: Lonni J Friedman||Date: 2004-12-13 02:51:08|
|Subject: disabling OIDs?|
|Previous:||From: Tom Lane||Date: 2004-12-13 02:35:33|
|Subject: Re: Temporary tables and disk activity |