Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rptwZ-009NvO-Jd for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Mar 2024 17:53:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rptwY-000rag-HK for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Mar 2024 17:53:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rptwY-000raY-7Q for pgsql-hackers@lists.postgresql.org; Thu, 28 Mar 2024 17:53:38 +0000 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rptwV-00729r-8k for pgsql-hackers@lists.postgresql.org; Thu, 28 Mar 2024 17:53:37 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 0E0FC1140139; Thu, 28 Mar 2024 13:53:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 28 Mar 2024 13:53:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711648413; x= 1711734813; bh=QfiJ7/x3GOig3vtRi30AJAl0JBzA+FDUoxZf6pNDwwI=; b=I wntIbmp3Rza8dO6CvejEXauMBH9QABXA+xLMY97FtWZYQpGPVFGGxzm5CM8sm+c2 3hWaXyckgGQ9S7Gr0JI7YP72TfZNgeRsSCnjYxrJjY8YcCuzPM8Ilr07TstXeOub NeqCiFGb7hgwXufy8QIoiXD2H/yfTJ1HmRxRFgPXokGabW/9gdPISnGa9950VB9N RtgOhvE67Hbba2n3xUF3NEADX8epfdJmGh7d8oU3KwVZDeiC6oWKxzJh4x0A7yZw zNjqaAIbwugAOtV03i1veUjvVWLDDOF6VKbi004G/pa2fBIsgFH32nkAOWh5VV4+ 9H2OUbedF1wmaWtRfsmeQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudduledguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeej keffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghl vhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Mar 2024 13:53:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1711648410; bh=CkCF+REPUFUFm8DdjBoWhkqrA0nUW0OWOn+ayFfU9cg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=JVCfvRNayMEXQPa20a2nzHmtBT2fW8v70jQAT3pE3TEECcZLpjcxmLHFcUIjBt+zV LGn5gxjfv1fetS284aXSfEc0MglQsGoZvX+9QYq/DeQsGdAm3V7JQxTEli7+lxGjC1 pIv8xUkWOM/f2HQEdwbn2zvAtIEBFAx++IIaGKaGjmMPLCjIy+OmWRYJgkZMP0/MLk QFDixpRPTy2mXp1rzpz2r9GUTVMuKqbmBebkvcQrHKO/O3tt52eOAi9Um6/cZB+5Pj KZiyVns78FGgPaC2IlXuBh+eSXjrkmNbCK49Eew3KR+pEU+IJ3gYor1Aa2XJNq93gK /98N0Cln1zrUA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id EA524385; Thu, 28 Mar 2024 18:53:30 +0100 (CET) Date: Thu, 28 Mar 2024 18:53:30 +0100 From: Alvaro Herrera To: Tom Lane Cc: Jelte Fennema-Nio , Noah Misch , Jacob Champion , Denis Laxalde , vignesh C , Thomas Munro , Greg Stark , "Gregory Stark (as CFM)" , Jelte Fennema , Daniel Gustafsson , Peter Eisentraut , Andres Freund , Justin Pryzby , Robert Haas , pgsql-hackers@lists.postgresql.org, Etsuro Fujita Subject: Re: [EXTERNAL] Re: Add non-blocking version of PQcancel Message-ID: <202403281753.ku5k2jvaw5fo@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3640451.1711647346@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Mar-28, Tom Lane wrote: > Jelte Fennema-Nio writes: > > > I think we don't really want to make the timeout too short. Otherwise > > the query might get cancelled before we push any query down to the > > FDW. I guess that means that for some slow machines even 10ms is not > > enough to make the test do the intended purpose. I'd keep it at 10ms, > > which seems long enough for normal systems, while still being pretty > > short. > > If the test fails both when the machine is too slow and when it's > too fast, then there's zero hope of making it stable and we should > just remove it. It doesn't fail when it's too fast -- it's just that it doesn't cover the case we want to cover. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)