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.96) (envelope-from ) id 1whEHn-0005ir-0B for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 22:29:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1whEHl-00342B-1Z for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 22:29:02 +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.96) (envelope-from ) id 1whEHl-003423-0U for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2026 22:29:01 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1whEHf-000000003Oi-3z7A for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2026 22:29:01 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-39c70686f58so330321fa.1 for ; Tue, 07 Jul 2026 15:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783463333; cv=none; d=google.com; s=arc-20260327; b=oFZVeV+75QrVJhDDfJV171ZsKM2XdpLVeyTHXm9onoOGm/p+CxjNllwlFRHry+IBES yIlHXMvec3/qBevD6co99YvrPNwUJR684Hg5qRijDnVugHXs1Fzo2/ME1LuC9kJHuGib awtG/1kB4TQXZdApdcY5pOE+EyUaIuumbQLWkIe3BuN0gsXQfLxVfY+wq2tVnfmB5oKm gkkLP5+IOYGyuMvHNP5WjjlkhzJd51dv7kgyseamT8t3vrHdwmLcH0ohhgSdQKgRSNW2 YWuLcZVPm8WZw1NDpgMDpE5TVATBxjZcP2TfLwr6d+bNQ22xOKgKuW17l5u0sbA4ZW1R hNQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=jTq2IB+0KkLS9HolSNGS9G5JfOpjvu1+XiM3SiVhAgQ=; fh=fLz48Io308dVpThosvRNBKpXawh7Z9MTM//Jh3RoRH8=; b=M+3ESG/BkuoEvS+4U75Qt0Hfbq5CCEz7u+LFKdQRRNE1ZFoiCCfb37VKq1Oz4RxW8X 1pk6Q4FwyrM8X2TxJb7S4sV5xQriAjvfDwG8y0WTNmz1oW8nCGKYUCcZoIV0F5xe6eQV GhwEvh1HB9SfSwOY8CP7ju4u1dTyxahg+xZiJzMfrk665hYeywpUU5m++kg4BuTiup7y 97PKhLC8AwLAPUVCl//PJxpH/WgIBUNeMZBZv1qoudB4xL/e2Qr+/KkoHRHH3qaIFhJc /J1nCaMRh+e5B3kCMxRH8foaADcbnZykY/a6qa2csd9Xap7QaP3GPA4CUT33usaFyjwc 2KAA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1783463333; x=1784068133; darn=lists.postgresql.org; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jTq2IB+0KkLS9HolSNGS9G5JfOpjvu1+XiM3SiVhAgQ=; b=XGiI0Fj9PzoXmu8DZaHpkgwb7JZOHNrxUjgHew+au2ewNUBIr0qP5yhQAq2Fp4m5no 39H+xuHthTpU4zvLgREIvbTEYLS5AhrNxxXEwvSezZkFgJCLL/+xUMV9GKac8Mo1fR90 9RP3Kv4bR4nHDJHQGr3cIAmMQ22vbLGvZxW3+Z4VuEQew2gyFdrL4Y3wJuAm07LnF/s1 u8mA469siEw/oUfYVWLm+fenxwD5tnFU7iSnjdVRo3am9vL9vKsTOWGKMIsarx6sNBxC Zde/lLiJDAJkdFlbVGETjCFaR1WXb4M8s0JikU/bA2G0SDaCD0Gn9bJeyZjIwwz6NWcF PU3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783463333; x=1784068133; h=content-type:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=jTq2IB+0KkLS9HolSNGS9G5JfOpjvu1+XiM3SiVhAgQ=; b=b0eNpfzzwjkF0jBJTEM/lhBTnXdSoRcUfpMYRPIjFuHn/uEQubEhtpi1cw6DHUbESV qpz6arbOkTuNUmeuel6E/Okp3XXKw06nk18wSv0dmRuJJ4Kg18J0L4ULBp6HMnHOBYlJ ecLbUwQSZ/yObFf7LPKrKA/AfhGaSeobHMYWJ4hnG417cNNuswOTtugaEkPs+GgVb4sW jEx8/QUFtLEZVov7Ktwtcymypv3PzCOjNSoPI7MKvce+FPhLaojD+uK98DdWsfZ5kW3U svqvq8n8EPbCZkM1Ou7F+PjoBTPThYeFLjl9TjFevnwuAcyTBJMRxFAyA3Ry8Ng5wNrS 6F0w== X-Gm-Message-State: AOJu0Yw9vsZijJaB0WJMlYUH0u8Trtswm5g6ME9Dh2WDjj013kocDCAm A4bW5vxSJhD5nV6xWExaOzgVosepNtX01YQEQ1J6jhef7k/V27nLf0WeeOSxXyAsUlgd0VFdljD EGf1oLvLiA9cnhg1oIaLlqQYxrg5MnK/JamoEXZFU/w== X-Gm-Gg: AfdE7cnbMY9snRfdg+9RcDCdVTkoj/4jqjz9ZqvIpwkJRaLnw24QQ8k+IUXTUSB0WKZ 4Nr9WHXA5d9w+ZqZeMrQM+Nk1qrobipPy618MB8odpU+HR81hMZwevi4dlfZfUuvCzM4eTWqsSl HsvUvpGe01QO5j6wIRG8dRTeWXGsptoM0XhPl7B6MdgD6jq+J2MzK3faT6iX2uNPRz/mGr0+qsV InS73Am71NJxEQ7BnnNAwhKw1z7/dqg3odiUw4b7dcEoI1rH7SMLrzBkTl+Q+50tCxmYJgM5Q== X-Received: by 2002:a05:651c:19ab:b0:39c:6d10:1d3a with SMTP id 38308e7fff4ca-39c78e4d130mr55561fa.13.1783463333459; Tue, 07 Jul 2026 15:28:53 -0700 (PDT) MIME-Version: 1.0 References: <88dfe280-ba29-4943-95b8-63abc9f3f771@iki.fi> <9d7ba3ac-d660-483e-8f68-9096a2464e90@iki.fi> In-Reply-To: From: Jelte Fennema-Nio Date: Wed, 8 Jul 2026 00:28:42 +0200 X-Gm-Features: AVVi8Ccfn6YSRChfNA9RVtpCIwJIVYPY7yQXo8trECISS1PJdJJn05Pq4RKM9Fc Message-ID: Subject: Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore To: Heikki Linnakangas Cc: PostgreSQL Hackers , Alvaro Herrera , Jacob Champion Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 7 Jul 2026 at 16:52, Heikki Linnakangas wrote: > Yeah, I guess that works.. But It's a little unsatisfactory to have to > poll, where we didn't poll before. I started to go down the rabbit hole, > here are the options I can think of: Honestly, I like the fallback to 1-second polling quite a bit better than any of the options you proposed. The benefit of your options (afaict) is making sure a very rare 1 second delay in a cancel for pg_dump/pg_restore cannot happen on most platforms. That seems like a rather insignificant benefit. But to achieve that the code on Windows (and depending on the option other platforms) is now different, which makes testing any future changes to the code much harder for anyone who doesn't have Windows. I don't think the benefit is worth that downside in this instance. I guess my general thoughts on this is that I would like the behaviour of Windows and Unix to become closer, not further apart (unless there are significant benefits to doing so).