Re: slow queries after ANALYZE - Mailing list pgsql-performance

From Tom Lane
Subject Re: slow queries after ANALYZE
Date
Msg-id 21669.1131744352@sss.pgh.pa.us
Whole thread Raw
In response to Re: slow queries after ANALYZE  (DW <dwinner-lists@att.net>)
List pgsql-performance
DW <dwinner-lists@att.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

pgsql-performance by date:

Previous
From: DW
Date:
Subject: Re: slow queries after ANALYZE
Next
From: Kelly Burkhart
Date:
Subject: Re: 8.x index insert performance