Re: ISN extension - wrong volatility level for isn_weak() function - Mailing list pgsql-bugs

From Daniel Gustafsson
Subject Re: ISN extension - wrong volatility level for isn_weak() function
Date
Msg-id 51C655A4-46FB-4A40-BAE5-26A76B31D3EE@yesql.se
Whole thread Raw
In response to ISN extension - wrong volatility level for isn_weak() function  (Viktor Holmberg <v@viktorh.net>)
Responses Re: ISN extension - wrong volatility level for isn_weak() function
Re: ISN extension - wrong volatility level for isn_weak() function
List pgsql-bugs
> On 14 Mar 2025, at 12:49, Viktor Holmberg <v@viktorh.net> wrote:
>
> Hello. Apologies if this is not the right place to bug report extensions

For an extension bundled in postgres contrib it's absolutely the right place.

> The isn_weak function in the isn extension reports the wrong value if you look at it inside a transaction:

> I can manually fix this by changing it to STABLE:
>
> ALTER FUNCTION isn_weak() STABLE;
>
> Am I missing something or isn’t this quite weird? Would it at least be possible to change the documentation to
explainthis? 

I wonder if this should really be marked VOLATILE instead as it has a side
effect.

--
Daniel Gustafsson




pgsql-bugs by date:

Previous
From: Viktor Holmberg
Date:
Subject: ISN extension - wrong volatility level for isn_weak() function
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #18846: Incorrect Filtering Behavior with FULL OUTER JOIN and WHERE Condition