Re: Views and query planner

From: Mario Splivalo <mario(dot)splivalo(at)mobart(dot)hr>
To: Michael Glaesemann <grzm(at)seespotcode(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Views and query planner
Date: 2006-06-30 13:23:42
Message-ID: 1151673822.27032.9.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 2006-06-30 at 21:47 +0900, Michael Glaesemann wrote:
> On Jun 30, 2006, at 21:35 , Mario Splivalo wrote:
>
> > Is postgres going to make one query plan, or each view has it own
> > query
> > plan?
>
> Have you taken a look at the EXPLAIN ANALYZE output of the queries?
> You can see exactly which plan PostgreSQL will use.
>

So, the performance will be the same if I use view on view, or I create
big select with those view definitions.

Mario
--
Mario Splivalo
Mob-Art
mario(dot)splivalo(at)mobart(dot)hr

"I can do it quick, I can do it cheap, I can do it well. Pick any two."

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Markus Schaber 2006-06-30 14:13:11 Re: Views and query planner
Previous Message Michael Glaesemann 2006-06-30 12:47:31 Re: Views and query planner