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 1rqKXY-00Bm4f-Ot for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2024 22:17:37 +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 1rqKXX-004z7c-10 for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2024 22:17:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rqKXW-004z7T-GA for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2024 22:17:34 +0000 Received: from mail-yb1-xb2f.google.com ([2607:f8b0:4864:20::b2f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rqKXP-0077Mx-L6 for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2024 22:17:32 +0000 Received: by mail-yb1-xb2f.google.com with SMTP id 3f1490d57ef6-dc6dcd9124bso2415391276.1 for ; Fri, 29 Mar 2024 15:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1711750648; x=1712355448; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=o0j8sG+frWtkw/Qo5wBbAOS26DHWUELF6vy2UejTlIw=; b=RXGy5iXT2fviBVKNpdThkxVgPhhzQZDxqwrfSwPObe5LGwCJ+Adf1l+ccLVdLBvdeJ 2OLqSDjSlWnrI+9nH9eC9mOh5N5laXEBGi3EeEWmgWdhbLS/2MLmFDBAyx8t0Bqf+eON rjc8RRjs6zHbiyTnOX01mmnt1Irmzo2EOdKSA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711750648; x=1712355448; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o0j8sG+frWtkw/Qo5wBbAOS26DHWUELF6vy2UejTlIw=; b=pDcgrO9+lzHA1LCngC6w2veuw5QzrWY32XUtzcZ5wn5wo2Z5pOLj4IAJBJ9A6kXfpJ YZHF8G7OHyRt/uv3MLegWkfDYgfMhyuCUS7PsLIYg/eLzHnLWwDIEoS+9gjTVnac09OS 4Y0nNkTg/SyxIEUMXAnKtB8tUtsdxnpymXsI8YEqu5ot477NgFNDlYFCc0MGoWEDD/cu bVIP8NOWWa2fLkNj7Nl1AUlptmQ+rwDRweeiqJgWKlBsxyxobUXbIWG76S5b+bXHhPL4 u0Z4zEV8m1hBHoiXr79PeVk/VbyWqb5Ggl1tZfqTKRTtnMCKWNh5TgVPPQX7PJhfcIMD caNg== X-Forwarded-Encrypted: i=1; AJvYcCXsDBmIfJ+b80UmMQFNXXbwMIa7i7NFtoQemeY6xMPDXnSelQn9p97c37naOmiAik8LWUS6eFGLntQ1jsFtF3vO40yrqON0hpyRkWgFhd/hzp07 X-Gm-Message-State: AOJu0YwaG3DVJ/klBnGP2tkGJG1YDsGXKqNwtxTUqsYvl8pkL9DyPPYr J1+k+uTis8qt6pdyM282iN/kcJmQbtRbFKR+NXQ5VlUVhWchGvLmloJoPuY9zA== X-Google-Smtp-Source: AGHT+IGeaZtgEojtPkjHJz4cBZeILp5bbN/bhMcJh54iNMCNtX0Qb9FzcnT1AZAEc9mb6xMEI4/deQ== X-Received: by 2002:a25:603:0:b0:dc8:5e26:f501 with SMTP id 3-20020a250603000000b00dc85e26f501mr2938273ybg.61.1711750648104; Fri, 29 Mar 2024 15:17:28 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id 130-20020a251588000000b00dc62edd58dasm942930ybv.40.2024.03.29.15.17.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2024 15:17:27 -0700 (PDT) Date: Fri, 29 Mar 2024 15:17:24 -0700 From: Noah Misch To: Jelte Fennema-Nio Cc: Tom Lane , Alvaro Herrera , 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: <20240329221724.03@rfd.leadboat.com> References: <202403281753.ku5k2jvaw5fo@alvherre.pgsql> <3643677.1711648979@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 29, 2024 at 09:17:55AM +0100, Jelte Fennema-Nio wrote: > On Thu, 28 Mar 2024 at 19:03, Tom Lane wrote: > > Could we make this test bulletproof by using an injection point? > > If not, I remain of the opinion that we're better off without it. > > Possibly, and if so, I agree that would be better than the currently > added test. But I honestly don't feel like spending the time on > creating such a test. The SQL test is more representative of real applications, and it's way simpler to understand. In general, I prefer 6-line SQL tests that catch a problem 10% of the time over injection point tests that catch it 100% of the time. For low detection rate to be exciting, it needs to be low enough to have a serious chance of all buildfarm members reporting green for the bad commit. With ~115 buildfarm members running in the last day, 0.1% detection rate would have been low enough to bother improving, but 4% would be high enough to call it good.