Re: Execution plan caching

From: Douglas McNaught <doug(at)mcnaught(dot)org>
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 14:10:26
Message-ID: 87d4vxwqst.fsf@suzuka.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Philippe Lang" <philippe(dot)lang(at)attiksystem(dot)ch> writes:

> 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?

To the best of my knowledgle, if you PREPARE a query that uses a view,
either explicitly or implicitly via your database driver, the plan
will be cached.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-10-02 14:13:30 Re: Strange discrepancy in query performance...
Previous Message Richard Huxton 2007-10-02 13:56:39 Re: Find min year and min value