Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2DLz-0006Tw-Dd for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jun 2022 14:53:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o2DLx-0001QJ-Bz for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jun 2022 14:53:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2DLx-0001QA-3D for pgsql-hackers@lists.postgresql.org; Fri, 17 Jun 2022 14:53:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2DLu-00040P-US for pgsql-hackers@postgresql.org; Fri, 17 Jun 2022 14:53:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 25HErUWW1228109; Fri, 17 Jun 2022 10:53:30 -0400 From: Tom Lane To: Andres Freund cc: David Rowley , Peter Geoghegan , PostgreSQL-development , Nikita Glukhov , Andrew Dunstan Subject: Re: PG 15 (and to a smaller degree 14) regression due to ExprEvalStep size In-reply-to: <1221363.1655476388@sss.pgh.pa.us> References: <20220616233130.rparivafipt6doj3@alap3.anarazel.de> <20220617052228.mjwns6ugspihamsc@alap3.anarazel.de> <20220617062456.ahbwho67m7c3lnr3@alap3.anarazel.de> <1221363.1655476388@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 17 Jun 2022 10:33:08 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1228107.1655477610.1@sss.pgh.pa.us> Date: Fri, 17 Jun 2022 10:53:30 -0400 Message-ID: <1228108.1655477610@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > Andres Freund writes: >> Or we could add a timeout.c API that specifies the timeout? > Don't think that will help: it'd be morally equivalent to > enable_timeout_at(), which also has to do GetCurrentTimestamp(). BTW, if we were willing to drop get_timeout_start_time(), it might be possible to avoid doing GetCurrentTimestamp() in enable_timeout_at, in the common case where the specified timestamp is beyond signal_due_at so that no setitimer call is needed. But getting the race conditions right could be tricky. On the whole this doesn't sound like something to tackle post-beta. regards, tom lane