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 1rVEzb-00Fj0e-AP for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Jan 2024 18:07:23 +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 1rVEzX-00FiHy-Os for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Jan 2024 18:07:19 +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 1rVEzX-00FiHp-E5 for pgsql-hackers@lists.postgresql.org; Wed, 31 Jan 2024 18:07:19 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rVEzU-004kqk-DC for pgsql-hackers@postgresql.org; Wed, 31 Jan 2024 18:07:18 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-59a27fbe832so40044eaf.3 for ; Wed, 31 Jan 2024 10:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon.tech; s=google; t=1706724434; x=1707329234; darn=postgresql.org; h=in-reply-to:references:to:subject:cc:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5GvOj0t6hNrhYHl7RRYsbjiBTNhd+pn0yLeJ0VrRR2M=; b=JhAQGesJDyDUK7ownERPDxH/sYfUqkLMqWsOEi9DEE7fAxfwFyEifsJm8teQGBef13 Z5VBJ4DiF00LEX3b80a6BUW5Xm7QXxTbXBP/+DbKiB1nqiO2NEokfmy8OA7JYSaXqy2+ Bif4oEIjLnKtje4HEbincwPioVyao7O9Wc8Sk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706724434; x=1707329234; h=in-reply-to:references:to:subject:cc:from:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=5GvOj0t6hNrhYHl7RRYsbjiBTNhd+pn0yLeJ0VrRR2M=; b=bwtohBNXxVTYEF7Q8Pilgw8hgTV/VYJkuJEqCd5hx9aMQl6XdRD45Ph9aOXOtw+0tk Qxs4MxZs54NFIWhAhwwocJr3DbdvebSvvcnvgrZ9h/U5ErqS0XQWAvuOV6G0MgJIgozf t324OIaFkfICA38uNRcxQJyghB9qJVDNMGvJPI/Bqsiomqny+ftdgMO0zSF0mEhMf3XY rV1prHsccE7BJG/fYXhr/Hprs7el44QbNkw3zREO66rJl9haluVi7vY76PMsX23MUcGW WGUlDKclEFUnTwAugcaIqnFV8W+e1S2KtQxow1egcy9UQFFqy4GOfQlfO+LslQBfapx6 pxaw== X-Gm-Message-State: AOJu0YwRn1NvrlRc0nhtSSG4fRkJFHM4uMmYqXFZydAWdlUH5bqC2jR+ vFKKxeQjFIK6yYxXj09PL4TXegcEqQVy3rHWUkrKCjuqOfl6733ayduUcF00HVY= X-Google-Smtp-Source: AGHT+IHnNwqv5crFcc9m6UMG3o8qIst1Di8sI0l4OI+Q/PRUGWLSbuuTpRUuvI3rq1A9014pNN8nVA== X-Received: by 2002:a05:6870:5490:b0:218:416b:b075 with SMTP id f16-20020a056870549000b00218416bb075mr2814659oan.10.1706724433851; Wed, 31 Jan 2024 10:07:13 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWDTZq+KkYr0TDDT0zENH7Sx/ZVldVF1mECEjyUwd4AddP+B1g5RzcMjsA9pTNK/q8/i/cekYTCa4b8aI09tQ8/8rP21Sq74AQnYahPBriOwzjnZPCVjoucfWDrfhdsZ/OZEff+VKkk/0h/9tiep5zYkZ19Rxx57FF++YHWFhBbfcyQPFM7672935o= Received: from localhost ([2607:fb90:e690:e7d:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id ds38-20020a0568705b2600b00218dbdf3612sm82390oab.15.2024.01.31.10.07.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Jan 2024 10:07:13 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Wed, 31 Jan 2024 12:07:12 -0600 Message-Id: From: "Tristan Partin" Cc: "Robert Haas" , "Heikki Linnakangas" , "Tom Lane" , , "Shlok Kyal" Subject: Re: psql not responding to SIGINT upon db reconnection To: "Jelte Fennema-Nio" X-Mailer: aerc 0.16.0-178-g4998406cce85 References: <1588058.1690220636@sss.pgh.pa.us> <5e28b89f-0033-4e42-8184-b71b731c1aa2@iki.fi> <9b3693b7-0bc3-430a-b43f-eae44e8a39b6@iki.fi> <032868e0-a530-4fc7-972c-af6f08950b7e@iki.fi> In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue Jan 30, 2024 at 4:42 PM CST, Jelte Fennema-Nio wrote: > On Tue, 30 Jan 2024 at 23:20, Tristan Partin wrote: > > Not next week, but here is a respin. I've exposed pqSocketPoll as > > PQsocketPoll and am just using that. You can see the diff is so much > > smaller, which is great! > > The exports.txt change should be made part of patch 0001, also docs > are missing for the newly exposed function. PQsocketPoll does look > like quite a nice API to expose from libpq. I was looking for documentation of PQsocket(), but didn't find any=20 standalone (unless I completely missed it). So I just copied how=20 PQsocket() is documented in PQconnectPoll(). I am happy to document it=20 separately if you think it would be useful. My bad on the exports.txt change being in the wrong commit. Git=20 things... I will fix it on the next re-spin after resolving the previous=20 paragraph. --=20 Tristan Partin Neon (https://neon.tech)