Re: [PERFORM] 8.4/9.0 simple query performance regression

2011-06-07 Thread Vitalii Tymchyshyn
07.06.11 00:45, Josh Berkus написав(ла): All, Just got this simple case off IRC today: 8.4.4 This plan completes in 100ms: Filter: (NOT (hashed SubPlan 1)) 9.0.2 This plan does not complete in 15 minutes or more: Filter: (NOT (SubPlan 1)) "Hashed" is the key. Hashed subplans usually

Re: [PERFORM] 8.4/9.0 simple query performance regression

2011-06-06 Thread Tom Lane
Josh Berkus writes: > Just got this simple case off IRC today: > [ hashed versus non-hashed subplan ] > I'm at a bit of a loss as to what's happening here. Possibly work_mem is smaller in the second installation? (If I'm counting on my fingers right, you'd need a setting of at least a couple MB

[PERFORM] 8.4/9.0 simple query performance regression

2011-06-06 Thread Josh Berkus
All, Just got this simple case off IRC today: 8.4.4 This plan completes in 100ms: old_prod=# explain analyze select email from u_contact where id not in (select contact_id from u_user); QUERY PLAN -