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 1tae6Y-003myB-9x for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jan 2025 17:01:26 +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 1tae6X-002E6X-BC for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jan 2025 17:01:25 +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 1tae6W-002E6K-R1 for pgsql-hackers@lists.postgresql.org; Wed, 22 Jan 2025 17:01:25 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tae6T-000wUu-2t for pgsql-hackers@postgresql.org; Wed, 22 Jan 2025 17:01:24 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-21c2f1b610dso126952935ad.0 for ; Wed, 22 Jan 2025 09:01:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cleverelephant-ca.20230601.gappssmtp.com; s=20230601; t=1737565280; x=1738170080; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TQxh3vXRbZIlnbcFhhdHgCNrTiKsh1Lp7/b2YJxy7qc=; b=GM2PBY04otreO9ADVT+0MZOZfKvxeqZLmHA2orpcK2elzKycIBH+fLsmICpYopsAsy vmhBh+c9FgMhx8/T1ECUj6SsntlxSsEO517eLBcOq22fuJUP/YT3r7l/2Jfhf7q2W0U6 3hfjpz7wsxv9ahdz9X6Xri5c/75u4yrswppYuo55oUFdwAxJ14Wo8/fF4wj2PqaQXQSF WPOwSU29ia10nGkjw+jYZ7Uf3LS/YSYZJ9KIycg6Ib7CUUsxRLokQuYuLcl9zVLYKN/c l2oN7DAXIA88UO0SzDnDS8kg6sDetlvAV6BKc3ivdk436CxyKDtYXKqbrqcNB/J11tdb yy9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737565280; x=1738170080; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TQxh3vXRbZIlnbcFhhdHgCNrTiKsh1Lp7/b2YJxy7qc=; b=Psc3mlBTwKsqHEWBNyLaS5tHZNvAt8ToCngNAj2KOphB9IPbc2bBxTWdg9vOtESU40 yKA6WNHg1VQ58rIGEphdUhI+PchUFih2PbWn4NN1xEtMtnLQhTG8gCBd6gkBs6lGRf7z X363U+LBVq3TwQZUXBmcjxivyqKl5bZqPCIzeh2JCGCqa0dFW4lmgwF3/ZkitcQi52vF J5Qyah9+gzmz7fqFSDcY63Pn8JgPIB0y/mf4CZZms2nXB4S6gddVcvQ09qrToWnIh5V3 zsD39bKDylN0D6lC1ZE1zok+zixmrqhTlz8Rg3aMPXPdH+K8+dnq0Gn19KjyennTTxGh 75SQ== X-Gm-Message-State: AOJu0Yzrr0bEHL2Nv1umj8kNrXrdvyGV3SJlNubn+n0s0UrSGpK3ubEs zdCdbx9g5BG8Tq0ALryQj+W6Z3u/1FCnfpNCf/5rhGqrg1wxneeetg0Z7v8oRQ== X-Gm-Gg: ASbGncufJdkXKv1XspmKQPZFAQyn4esBnYoShVPf9DiUMU17eRkWMYsqfk7YJg0bIAP QI2gFv6ZkgKT3DcWu3zXbIEeYX93qIVxI5dRVQjObsTsW4NiFMsZGqESyjaHvKH7pzEjvDDwkfH ye244r80CuWbhnTY5a3da7pDrS79AOzCWQ1ScbXLSxu+dyRdsi3gzr3QANDcvcYXyfrpLGu9zMF fj+WWXKEHgYJogtxWrWjg5Z2FerK5dLY4F4+a+srQAx2SW6Y01pvTUY+rOgcWyfdOmV1A1tbLiU eIRezTF2BwLs4FWodg== X-Google-Smtp-Source: AGHT+IFLEy0hyt28c3G80YZIpSlFWWqWKY4hdP+Q4hFzHuRegYWu6BJlLgOwRVHCi9VSJHFDzlcnqQ== X-Received: by 2002:a05:6a20:918c:b0:1e0:de01:4407 with SMTP id adf61e73a8af0-1eb2160d370mr30754627637.37.1737565280447; Wed, 22 Jan 2025 09:01:20 -0800 (PST) Received: from smtpclient.apple ([206.87.69.253]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-aaa24c1b4f5sm8090118a12.37.2025.01.22.09.01.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jan 2025 09:01:20 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: Converting pqsignal to void return From: Paul Ramsey In-Reply-To: Date: Wed, 22 Jan 2025 09:01:09 -0800 Cc: PostgreSQL Hackers , Nathan Bossart Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E796D56-79B5-4447-9DA7-5428BC1A6B53@cleverelephant.ca> To: Andres Freund X-Mailer: Apple Mail (2.3776.700.51.11.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jan 22, 2025, at 8:50=E2=80=AFAM, Andres Freund = wrote: >=20 >> It is possible we have been Doing It Wrong all this time, and would = love some pointers on the right way to do this. >=20 > All your interrupt handler is doing "for you" is setting > http_interrupt_requested, right? Why do you need that variable? Seems = you > could just check postgres' QueryCancelPending? And perhaps = ProcDiePending, if > you want to handle termination too. This is the Knowledge that was sitting right in front of me, but I could = not see. =46rom the road to Damascus, Paul