From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Arnaud Lesauvage <thewild@freesurf.fr>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index on two columns not used
Date: Wed, 18 Oct 2006 15:50:35 +0100
Message-ID: <45363F3B.1080109@enterprisedb.com> (raw)
In-Reply-To: <453636F1.7000903@freesurf.fr>
References: <45360E25.9010403@freesurf.fr>
<45361295.9050504@enterprisedb.com>
<45361A2D.6080702@freesurf.fr>
<453632C5.50501@enterprisedb.com>
<453636F1.7000903@freesurf.fr>
Arnaud Lesauvage wrote:
> It is quite typical, yes. It is the base query of a view. In fact, most
> views have a lot more joins (they join with all the upper-level tables).
> But 150ms is OK, indeed.
If the query using the view does anything more than a "SELECT * FROM
view", you should do an explain analyze of the query instead of the
definition of the view. The access plan might look very different.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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: heikki@enterprisedb.com, thewild@freesurf.fr
Subject: Re: Index on two columns not used
In-Reply-To: <45363F3B.1080109@enterprisedb.com>
* 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