Re: Analyze makes queries slow...

From: Stef <svb(at)ucs(dot)co(dot)za>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Analyze makes queries slow...
Date: 2003-08-12 17:30:10
Message-ID: 20030812193010.701de1ee.svb@ucs.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, 11 Aug 2003 14:25:03 -0400
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

=> set enable_mergejoin to off;
=> explain analyze ... query ...
=>
=> If it finishes in a reasonable amount of time, send the explain output.

Hi again,

I did this on the 7.3.1 database, and attached the output.
It actually ran faster after ANALYZE and 'set enable_mergejoin to off'
Thanks!

I also reloaded this database onto 7.3.4, tried the same query after
the ANALYZE, and the query executed a lot faster.
Thanks again!

I also attached the output of the EXPLAIN ANALYZE on 7.3.4

For now I'll maybe just disable mergejoin. But definitely a postgres
upgrade is what I will do.

I went through the different outputs of EXPLAIN ANALYZE a bit, and
I think I can now see where the difference is.

Thanks a lot for the help.

Regards
Stefan.

Attachment Content-Type Size
expl_anlyze_nomergejoin_7.3.1.txt text/plain 4.8 KB
expl_anlyze_nomergejoin_7.3.4.txt text/plain 5.2 KB

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2003-08-12 18:02:01 Re: about performance of postgreSQL
Previous Message Chris Travers 2003-08-12 17:26:17 Re: about performance of postgreSQL