On Wed, 2024-06-19 at 10:58 -0400, Tom Lane wrote: > Laurenz Albe <laurenz.albe@xxxxxxxxxxx> writes: > > What works is setting the parameter on the procedure: > > > test=> CREATE OR REPLACE PROCEDURE sit() LANGUAGE plpgsql SET statement_timeout = 2000 AS 'BEGIN PERFORM pg_sleep(5); END;'; > > CREATE PROCEDURE > > That doesn't work either, for me, and I would not expect any of these > variants to do so. Ah, you are right. It was the SET statement in the previous incarnation of the procedure that had changed the parameter for my database session. Yours, Laurenz Albe