Re: Update with Subquery Performance - Mailing list pgsql-performance

From Tom Lane
Subject Re: Update with Subquery Performance
Date
Msg-id 2982.1202749162@sss.pgh.pa.us
Whole thread Raw
In response to Update with Subquery Performance  ("Linux Guru" <linux.binary@gmail.com>)
Responses Re: Update with Subquery Performance  ("Linux Guru" <linux.binary@gmail.com>)
List pgsql-performance
"Linux Guru" <linux.binary@gmail.com> writes:
> We have a large datawarehouse stored in postgres and temp tables are created
> based on user query. The process of temp table creation involves selecting
> data from main fact table, this includes several select and update
> statements and one of the following update statement is having performance
> issues.

Try ANALYZEing the temp table before the step that's too slow.

If that doesn't help, let's see EXPLAIN ANALYZE (not just EXPLAIN)
output.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Optimizer : query rewrite and execution plan ?
Next
From: Thomas Zaksek
Date:
Subject: Join Query Perfomance Issue