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 1rOL6K-003MTt-8S for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jan 2024 17:13:49 +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 1rOL6J-003sT7-3N for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Jan 2024 17:13:47 +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 1rOL6I-003sSy-PN for pgsql-hackers@lists.postgresql.org; Fri, 12 Jan 2024 17:13:46 +0000 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rOL6G-001Dli-7r for pgsql-hackers@postgresql.org; Fri, 12 Jan 2024 17:13:46 +0000 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3bb9b28acb4so4926124b6e.2 for ; Fri, 12 Jan 2024 09:13:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon.tech; s=google; t=1705079622; x=1705684422; 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=MtDPVQmhO03j/zPaBt6UI4/m/tJwa0gJtOf4sOB9HtA=; b=RzkOO6zwgiRJV0etks8zgWMGKJL69xF3IwX1pVmaxQmK2Nh/zjFQ47Wk+2McVLsWrH Y9hgtlSEzRuvkFaSLn2Bptvhd+G4GRiuTsOfSuDaGNJLaxEdw3czpx9J+6opQZYYOLbl 9rzWg7PyjE+oJwRB+3NioGd+DTsmaOywz73ms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705079622; x=1705684422; 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=MtDPVQmhO03j/zPaBt6UI4/m/tJwa0gJtOf4sOB9HtA=; b=jCylnuUU7iwWK01N9gxs+xAAuneB6IlOJv2w9ClvI+fKZMBGXjkRgtUFYmOmyd9Ie8 T/t8gKofT3w/h75Jn9cg99bqAfKpUqI8aqaTj/yT2oLLDDxY5cn7k01aC2fnaXfFiO5u KagI6wlOxRj6n/fD+Y6p2xFz70p8S3A+7qdHJmHaQrXoYQWo+q+jwHpDd+dThdRs0rSE wZcX/CXuPq9j637tXmI4fJ6SM5cPIoxpx4yLVM/MDjQEA5lcG6CLKVrUbC9/FJmhIszG RiXvbhB/nA7LT34etyrc6Yco0qOBiQe6FtL3vAxRo4yrh1zQqZiKuPV/TqI1weNHf3n+ Md+g== X-Gm-Message-State: AOJu0YxqAk7Sj5q4QmUg1CEeK7Op/Rz8n7tyY8DDgen96nr0UvOG1hPv bRYP5a+EAkpH52RxPlnyC4WR+8ZjYDa7fQ== X-Google-Smtp-Source: AGHT+IFH6U6cv3k7QZKYeH/7u16B69fdjYieaw9qT2Rg8OjWAwu49v4IJxfStvPrwkOKMexYXIyFDA== X-Received: by 2002:a54:4887:0:b0:3bc:275e:7eb8 with SMTP id r7-20020a544887000000b003bc275e7eb8mr1192774oic.119.1705079622274; Fri, 12 Jan 2024 09:13:42 -0800 (PST) Received: from localhost ([2607:fb90:e683:8cf6:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id s7-20020a0568080b0700b003bbc47b946csm642378oij.33.2024.01.12.09.13.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jan 2024 09:13:41 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Fri, 12 Jan 2024 11:13:40 -0600 Message-Id: From: "Tristan Partin" Cc: "Heikki Linnakangas" , "Tom Lane" , , "Shlok Kyal" Subject: Re: psql not responding to SIGINT upon db reconnection To: "Robert Haas" X-Mailer: aerc 0.16.0-127-gec0f4a50cf77 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 Fri Jan 12, 2024 at 10:45 AM CST, Robert Haas wrote: > On Mon, Jan 8, 2024 at 1:03=E2=80=AFAM Tristan Partin = wrote: > > I think the way to go is to expose some variation of libpq's > > pqSocketPoll(), which I would be happy to put together a patch for. > > Making frontends, psql in this case, have to reimplement the polling > > logic doesn't strike me as fruitful, which is essentially what I have > > done. > > I encourage further exploration of this line of attack. I fear that if > I were to commit something like what you've posted up until now, > people would complain that that code was too ugly to live, and I'd > have a hard time telling them that they're wrong. Completely agree. Let me look into this. Perhaps I can get something up=20 next week or the week after. --=20 Tristan Partin Neon (https://neon.tech)