Re: [PERFORM] manually force planner to use of index A vs index B

2011-12-03 Thread MirrorX
thx a lot for the reply. i will post the query plans when a new bulk insert will take place :) -- View this message in context: http://postgresql.1045698.n5.nabble.com/manually-force-planner-to-use-of-index-A-vs-index-B-tp5044616p5044691.html Sent from the PostgreSQL - performance mailing list ar

Re: [PERFORM] manually force planner to use of index A vs index B

2011-12-03 Thread Tomas Vondra
On 3.12.2011 15:34, MirrorX wrote: > > but, at some point there are some bulk inserts with a different date. when > this happens and i run the query mentioned above the planner is using index > A and not index B. > i guess this happens b/c the planner due to the last analyze statistics has > no va

[PERFORM] manually force planner to use of index A vs index B

2011-12-03 Thread MirrorX
hello to all, the situation i am facing is this-> table X-> 200 mil rows index A (date, columnA) index B (date,columnB,columnC) the query planner is working properly and for a specific query that selects from table X where all 3 columns of index B are set, it uses index B. but, at some point the