[GENERAL] Can't get planner to use multicolumn index on large table

2004-11-24 Thread Ulrich Meis
Hi! I am trying to get postgres to use my index but it just doesn't. Please Help! It follows the table definition and a series of commands I thought would ensure usage of my index. CREATE TABLE data.question_result ( id bigserial PRIMARY KEY, trial_idbigint

Re: [GENERAL] Can't get planner to use multicolumn index on large

2004-11-24 Thread Neil Conway
Ulrich Meis wrote: CREATE TABLE data.question_result ( id bigserial PRIMARY KEY, trial_idbigint NOT NULL REFERENCES data.trial(id), question_id bigint REFERENCES content.question(id), two more columns, ); mydb=# explain analyze select *