Re: Volatile functions under Memoize node - Mailing list pgsql-bugs

From Andrei Lepikhov
Subject Re: Volatile functions under Memoize node
Date
Msg-id 8331d79b-1aa2-477b-ab43-0d72c4c49fbf@gmail.com
Whole thread Raw
In response to Re: Volatile functions under Memoize node  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-bugs
On 20/9/2024 04:36, David Rowley wrote:
> On Fri, 20 Sept 2024 at 04:47, Andrei Lepikhov <lepihov@gmail.com> wrote:
>> Excuse me if I made noise in vain. After discovering the limits of the
>> Memoize node, I realized that volatile functions are allowed under the
>> Memoize.
> I'm not sure if it's a good idea to penalise your case when we're not
> all that consistent to start with.  Is this causing some sort of
> breakage?
As I've said before, I just discovered the feature's limits and realised 
that I don't actually understand the idea of volatility checking: even 
in the get_memoize_path, we spend cycles checking the target list and 
base restrictions for such functions. Is it necessary there?

-- 
regards, Andrei Lepikhov




pgsql-bugs by date:

Previous
From: David Rowley
Date:
Subject: Re: Volatile functions under Memoize node
Next
From: Andrei Lepikhov
Date:
Subject: Re: Volatile functions under Memoize node