From: Tom Lane <tgl@sss.pgh.pa.us>
To: Linux Guru <linux.binary@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Update with Subquery Performance
Date: Mon, 11 Feb 2008 11:59:22 -0500
Message-ID: <2982.1202749162@sss.pgh.pa.us> (raw)
In-Reply-To: <3caa866c0802110306rcb5e72dyd264ff330c61f8ae@mail.gmail.com>
References: <3caa866c0802110306rcb5e72dyd264ff330c61f8ae@mail.gmail.com>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, linux.binary@gmail.com
Subject: Re: Update with Subquery Performance
In-Reply-To: <2982.1202749162@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox