Re: Execution plan caching

From: Richard Huxton <dev(at)archonet(dot)com>
To: Philippe Lang <philippe(dot)lang(at)attiksystem(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Execution plan caching
Date: 2007-10-02 13:45:54
Message-ID: 47024B92.7070209@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Philippe Lang wrote:
> Hi,
>
> I have recently used the MS SQL Server 2005 database, and found out that
> there is no mecanism where an execution plan can be reused between two
> successive calls to a view. This is only true with stored procedures.
>
> Is that also true with the Postgresql engine?

Well, if you prepare "SELECT * FROM my_view" then the plan for that will
be cached. In general though, the query will be planned each time.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Schwarzer 2007-10-02 13:48:42 Re: Find min year and min value
Previous Message Richard Huxton 2007-10-02 13:40:11 Re: Find min year and min value