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-11 16:47:36
Message-ID: 20030811184736.7e191a86.svb@ucs.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi Tom,

Thanks for responding.
I got as much info as I could :

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

=> Could we see the results of "EXPLAIN ANALYZE", rather than just EXPLAIN,
=> for the un-analyzed case?

Attached the output of this.

=> Also, what do you see in pg_stats (after analyzing) for each of the
=> tables used in the query?

I attached a file in csv format of pg_stats after analyzing.
(With the columns selected on the top line)

It looks like cached values for (quite a lot of?) the table columns.
I would assume it stores the most commonly selected
values for every column with an index. Don't know if I'm correct.

=> And what PG version is this, exactly?

PostgreSQL 7.3.1

Kind regards
Stefan

Attachment Content-Type Size
explain_analyze.txt text/plain 4.1 KB
pg_stats.csv text/comma-separated-values 11.0 KB

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message elein 2003-08-11 17:07:40 Re: Windows on SuSE? 7.4
Previous Message Tom Lane 2003-08-11 15:54:39 Re: Windows on SuSE? 7.4