Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-16 Thread Merlin Moncure
> On 15.03.2011 17:24, Merlin Moncure wrote: >> >> >> well, regardless of the version, you're doing a gazillion sequential >> scans on relation tags. This looks like the primary culprit (I had to >> look up the ~~* operator...it's 'ilike'): >> ( >> (k ~~* 'boundary'::text) OR >> ( >> (k ~~

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-16 Thread Jo
I know the intensity of ilikes but I don't see another way to solve it. But that shouldn't be the problem because the query runs on another server (not as powerful as the actual machine) with postgres 8.3 in acceptable time (same data, same query). Each of the collumns of the relation table has a

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-15 Thread Merlin Moncure
On Mon, Mar 14, 2011 at 9:48 AM, Jo wrote: > I set the work_mem to 100MB and the shared buffers are 2 GB > > The query plans are long and complex. I send the beginning of the > two plans. Hope this helps to understand the differences. > I assume the join strategy in 8.3 differs from the one in 8.4

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-14 Thread Jo
Hello, that's the 8.4 query plan: http://explain.depesz.com/s/dO7 The locale of the two databases is the same: SHOW LC_COLLATE command gives the locale: "de_DE.UTF-8". Regards, Jo On 14.03.2011 16:04, t...@fuzzy.cz wrote: Hello 2011/3/14 Jo: I set the work_mem to 100MB and the shar

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-14 Thread Tom Lane
>> we have performance problems running several queries pon postgres 8.4 . >> Using the previous version (8.3) our queries performs well >> (The queries are quite complex, consisting of several sub-queries and >> various spatial functions). Two things that frequently bite people during an upgrade:

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-14 Thread tv
> Hello > > 2011/3/14 Jo : >> I set the work_mem to 100MB and the shared buffers are 2 GB >> >> The query plans are long and complex. I send the beginning of the >> two plans. Hope this helps to understand the differences. >> I assume the join strategy in 8.3 differs from the one in 8.4. >> > > the

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-14 Thread Pavel Stehule
Hello 2011/3/14 Jo : > I set the work_mem to 100MB and the shared buffers are 2 GB > > The query plans are long and complex. I send the beginning of the > two plans. Hope this helps to understand the differences. > I assume the join strategy in 8.3 differs from the one in 8.4. > these outputs are

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-14 Thread Jo
I set the work_mem to 100MB and the shared buffers are 2 GB The query plans are long and complex. I send the beginning of the two plans. Hope this helps to understand the differences. I assume the join strategy in 8.3 differs from the one in 8.4. * The beginn

Re: [GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-14 Thread Hannes Erven
Jo, > we have performance problems running several queries pon postgres 8.4 . > Using the previous version (8.3) our queries performs well > (The queries are quite complex, consisting of several sub-queries and > various spatial functions). > > Are there some major changes from 8.3 to 8.4 that ca

[GENERAL] Postgres 8.3 vs. 8.4 - Query plans and performance

2011-03-14 Thread Jo
Hello, we have performance problems running several queries pon postgres 8.4 . Using the previous version (8.3) our queries performs well (The queries are quite complex, consisting of several sub-queries and various spatial functions). Using a new server with debian squeeze and postgres 8.4 fr