Re: [PERFORM] Query slow after analyse on postgresql 8.2

2010-06-17 Thread Kaufhold, Christian (LFD)
, 17. Juni 2010 16:59 An: Kaufhold, Christian (LFD) Cc: pgsql-performance@postgresql.org Betreff: Re: [PERFORM] Query slow after analyse on postgresql 8.2 "Kaufhold, Christian (LFD)" writes: > I have the following query that I run agains postgresql 8.2: > ... > But when I r

Re: [PERFORM] Query slow after analyse on postgresql 8.2

2010-06-17 Thread Tom Lane
"Kaufhold, Christian (LFD)" writes: > I have the following query that I run agains postgresql 8.2: > ... > But when I run analyse the same query runs for hours. Seems like the core of the problem is here: > -> Seq > Scan on massnahme

[PERFORM] Query slow after analyse on postgresql 8.2

2010-06-17 Thread Kaufhold, Christian (LFD)
Hi, I am new to this list so please forgive me if it not fits the standards. I have the following query that I run agains postgresql 8.2: select distinct m.koid, m.name, m.farbe, m.aktennummer, m.durchgefuehrt_von, m.durchgefuehrt_bis, rf.bezeichnung as rf_bezeichnung, mt.