Re: [PERFORM] Bad row estimates

2006-03-03 Thread Greg Stark
Alex Adriaanse <[EMAIL PROTECTED]> writes: > SELECT count(*) FROM test_table_1 > INNER JOIN test_table_2 ON > (test_table_2.s_id = 13300613 AND test_table_1.id = test_table_2.n_id) > WHERE now() BETWEEN test_table_1.start_ts AND test_table_1.end_ts > AND test_table_1.id = test_

[PERFORM] Bad row estimates

2006-03-03 Thread Alex Adriaanse
Hello, I am doing some query optimizations for one of my clients who runs PostgreSQL 8.1.1, and am trying to cut down on the runtime of this particular query as it runs very frequently: SELECT count(*) FROM test_table_1 INNER JOIN test_table_2 ON (test_table_2.s_id = 13300613 AND te