Re: Function result cacheing - any comments? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Function result cacheing - any comments?
Date
Msg-id 6322.1029764810@sss.pgh.pa.us
Whole thread Raw
In response to Re: Function result cacheing - any comments?  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> My theory is that if such a piece of code gets a performance gain, then the 
> code is probably worth including, assuming that the function manager does 
> not need to be butchered to achieve the desired goal. Does that sound 
> reasonable?

Some real results would certainly bolster your case.

> So the obvious question is - in the opinion of people who know the code, 
> can a function-result-cache be implemented with a lifetime of a single 
> statement, without butchering the function manager?

I'd suggest trying to make it a function call handler.  Look at the way
Peter did "SECURITY DEFINER" functions for inspiration.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: Inheritance
Next
From: Tom Lane
Date:
Subject: Re: set search_path failure