Skip site navigation (1) Skip section navigation (2)

Re: Re: [COMMITTERS] pgsql: Invent a "one-shot" variant of CachedPlans for better performanc

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: Invent a "one-shot" variant of CachedPlans for better performanc
Date: 2013-01-06 21:29:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committerspgsql-hackers
On 5 January 2013 19:15, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

>> We need a full "one-shot" concept linking the planner and executor for
>> all sorts of reasons, not just this one. We can discuss the
>> practicality of individual optimizations but the linkage should be
>> clear throughout the whole infrastructure.
> I thought then, and I think now, that such a concept was too squishy
> to be useful as an actual guide to what to change.  The particular
> arguments you advanced then have been overtaken by events anyway;
> notably that Marti Raudsepp's work on caching stable subexpressions at
> execution seems like a much more general answer to the problem of
> handling stable functions efficiently.

I knew, and accepted that that specific optimization has been
superceded. My point is that the "one-shot" situation lends itself to
a great many optimizations and if we can pass that concept through, we
can simply get on with implementing them.

Having the planner pretend that it doesn't know what will happen at
execution time isn't sensible. Having the executor know its a one-off
will surely help somewhere along the line. It's hardly a modularity
violation to pass small, yet major pieces of information across the

 Simon Riggs         
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

pgsql-hackers by date

Next:From: Simon RiggsDate: 2013-01-06 21:58:49
Subject: Re: Skip checkpoint on promoting from streaming replication
Previous:From: Peter GeogheganDate: 2013-01-06 20:39:24
Subject: Re: enhanced error fields

pgsql-committers by date

Next:From: Tatsuo IshiiDate: 2013-01-07 02:25:20
Subject: pgsql: Add new "-q" logging option (quiet mode) while in initializemod
Previous:From: Tom LaneDate: 2013-01-06 20:50:03
Subject: pgsql: Fix plpython build on older versions of OS X.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group