Re: Fix for recursive plpython triggers

2024-05-08 Thread Tom Lane
Andreas Karlsson writes: > I found this issue while reading the code, so am very unclear if there > is any sane code which could trigger it. > In the example below the recursive call to f('int') changes the return > type of the f('text') call causing it to fail. > # CREATE OR REPLACE FUNCTION

Re: Fix for recursive plpython triggers

2024-05-08 Thread Andreas Karlsson
On 5/4/24 10:16 PM, Tom Lane wrote: This fixes bug #18456 [1]. Since we're in back-branch release freeze, I'll just park it for the moment. But I think we should shove it in once the freeze lifts so it's in 17beta1. There is a similar issue with the return type (at least if it is a generic rec

Fix for recursive plpython triggers

2024-05-04 Thread Tom Lane
This fixes bug #18456 [1]. Since we're in back-branch release freeze, I'll just park it for the moment. But I think we should shove it in once the freeze lifts so it's in 17beta1. regards, tom lane [1] https://www.postgresql.org/message-id/18456-82d3d70134aefd28%40postg