Persistent Plan Cache - Mailing list pgsql-performance

From Joshua Rubin
Subject Persistent Plan Cache
Date
Msg-id 4AAAB031.1080402@esoft.com
Whole thread Raw
Responses Re: Persistent Plan Cache
Re: Persistent Plan Cache
List pgsql-performance
Hi,

We have a very large, partitioned, table that we often need to query
from new connections, but frequently with similar queries. We have
constraint exclusion on to take advantage of the partitioning. This also
makes query planning more expensive. As a result, the CPU is fully
loaded, all the time, preparing queries, many of which have been
prepared, identically, by other connections.

Is there any way to have a persistent plan cache that remains between
connections? If such a mechanism existed, it would give us a great
speedup because the CPU's load for planning would be lightened
substantially.

Thank you,
Joshua Rubin


Attachment

pgsql-performance by date:

Previous
From: zz_11@mail.bg
Date:
Subject: possible wrong query plan on pg 8.3.5,
Next
From: Tom Lane
Date:
Subject: Re: Persistent Plan Cache