[GENERAL] Some issues with planner and query optimization

2007-02-02 Thread Boguk Maxim
Postgres 8.1 Sample test table: (all queries done on fresh vacuumed analyzed table with statistics on rub_id and news_dtime set to 1000) (all table in memory and server do not doing anything other) media=> \d test_table Table "public.test_table" Column |Type

[GENERAL] Some strange plans choosed by postgres for one query:

2006-09-01 Thread Boguk Maxim
Details: Postgres version 8.1 Table structure: media=# \d fast_links Table "public.fast_links" Column |Type | Modifiers +-+--

[GENERAL] Some mystery with execution plans on postgres 8.1

2006-06-07 Thread Boguk Maxim
If short: adding index to table change execution plans on query which dont use new index. More detailed info: tv2=# \d tv_events Table "public.tv_events" Column |Type | Modifiers +-+-