Re: slow queries after ANALYZE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dwinner-lists(at)att(dot)net
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: slow queries after ANALYZE
Date: 2005-11-11 21:25:52
Message-ID: 21669.1131744352@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

DW <dwinner-lists(at)att(dot)net> writes:
> In the meantime, again I'm new to this -- I got pg_stats; which rows are
> the relevent ones?

The ones for columns that are mentioned in the problem query.
I don't think you need to worry about columns used only in the SELECT
output list, but anything used in WHERE, GROUP BY, etc is interesting.

> Also, I am running postgresql-server-7.4.9 from FreeBSD port (with
> optimized CFLAGS turned on during compiling)
> OS: FreeBSD 5.4 p8

The hardware environment (particularly disks/filesystems) is relevant
too.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Kelly Burkhart 2005-11-11 22:48:25 Re: 8.x index insert performance
Previous Message DW 2005-11-11 20:48:16 Re: slow queries after ANALYZE