Re: query optimization - Mailing list pgsql-sql

From Tom Lane
Subject Re: query optimization
Date
Msg-id 28774.1078434950@sss.pgh.pa.us
Whole thread Raw
In response to query optimization  (Charles Hauser <chauser@duke.edu>)
List pgsql-sql
Charles Hauser <chauser@duke.edu> writes:
> I have the following query which is running quite slow on our server and
> was hoping someone would have suggestions how I might improve it.

Have you vacuumed or analyzed these tables recently?  The EXPLAIN
numbers show that the planner thinks all the tables are tiny, which
hardly seems likely given that you're complaining about the speed.

If it's still bad after you VACUUM ANALYZE, send EXPLAIN ANALYZE (not
just EXPLAIN) output and maybe we can give some help.
        regards, tom lane


pgsql-sql by date:

Previous
From: Radu-Adrian Popescu
Date:
Subject: Re: returning a recordset from PLpg/SQL
Next
From: Tom Lane
Date:
Subject: Re: debugging query to put message in pg logfile?