Re: [PERFORM] Unexpected seq scans when expected result is 1 row out of milions

2011-07-15 Thread Tom Lane
Svetlin Manavski writes: > The question is: why do we get a seq scan on appqosdata.tcpsessiondata_1 and > appqosdata.tcpsessiondata_2 even if the planner estimates correctly 1 row > out of millions could potentially be selected? As you can see ~90% of the > time is spent on those 2 partitions even

[PERFORM] Unexpected seq scans when expected result is 1 row out of milions

2011-07-15 Thread Svetlin Manavski
Hi all, here is my postgresql configuration: "version";"PostgreSQL 9.0.3 on amd64-portbld-freebsd8.0, compiled by GCC cc (GCC) 4.2.1 20070719 [FreeBSD], 64-bit" "bytea_output";"escape" "checkpoint_segments";"64" "client_encoding";"UNICODE" "effective_cache_size";"6GB" "fsync";"off" "lc_collate";"