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 1r03DQ-002w85-Id for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Nov 2023 17:16:44 +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 1r03DP-0005P0-2z for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Nov 2023 17:16:43 +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 1r03DO-0005Oo-Lx for pgsql-hackers@lists.postgresql.org; Mon, 06 Nov 2023 17:16:42 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r03DL-0052Ap-AU for pgsql-hackers@postgresql.org; Mon, 06 Nov 2023 17:16:41 +0000 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3b58d96a3bbso1765529b6e.1 for ; Mon, 06 Nov 2023 09:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon-tech.20230601.gappssmtp.com; s=20230601; t=1699290996; x=1699895796; darn=postgresql.org; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=J7Bbqoq4kvsazNuV25WdlOSmhAKPaNDxURRdKBKa6Qs=; b=Hcai1BkMnjffIVcC3t1W7jXBT+1pLjsVwJGHR95xk+zRhV7ZVALHUdtuX785Ej1hox OHSIzM9ELlW9Nq3p0SHqXgMVwjbJX40CXrEO/TOUxXpVCWyTE1hMegOATzM0A1TGzzWg gvxITJCHZfBLXp2vFCsejzr3ugAdI2sSkj+62fCka407eTi/x4j1yijIzGH+TKfp1rhI JTMVl5m8UXsfq7riImyPp9/hlZcOPfxf6oPiBV3mHOE/JN24OTTwpNmKVAopXC3E7Pnv 08exmtVRjbdZs3I6VE4QAWr1ELbmLnD06xYGu5d5RuGxxyGosFH2dHtmIaybnIIWfw94 L70g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699290996; x=1699895796; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=J7Bbqoq4kvsazNuV25WdlOSmhAKPaNDxURRdKBKa6Qs=; b=rxNpCP1yYAqz31Wg68NpQT/wZDiC6dOfNHNFO+sKkVyIjyKCaKZYjamDe/FWAw5lYU R+WC5sHNOYVkKPYBZ1LT5LVkyvJzSjyOxEvyKMzoP3j6gVd9Q7i2PL/u8ifalZJrDvrp hMm+qYRE/gEIqFJuRUXAEVT2a7gd5wp6xPViFQQiJMl4ncDk7LvHegFTNGQPdRnRklLg /aWPi6zDAe9ovvM0YEpXnC+aBDXZD5kAQ9zJ5rQoC4n6AdzMdpjg296eh0xfRRgCnr9H +Hu4cqDnQP7XZgxB7bp+Rzn1YXu8i1WurKWfSBAqh/qVJkzEw5JQVUW5ddYccQTh9FHD r7tg== X-Gm-Message-State: AOJu0Yz+mwvYI4Mr6d1wKGW1mLAEzJrxjGJ8L5AfC+qONXPBMpH3MeAP Ls38zhbqWKRZ4mhyPKc0qxzRNA== X-Google-Smtp-Source: AGHT+IFuVQfioWifQmptD5RgjjREyenlIAdQ1j6Tuee0PMVGnFIm2etYtSzNtGbI1forNue8z15UEA== X-Received: by 2002:aca:91a:0:b0:3b5:2ede:d9c1 with SMTP id 26-20020aca091a000000b003b52eded9c1mr29395269oij.47.1699290995732; Mon, 06 Nov 2023 09:16:35 -0800 (PST) Received: from localhost ([2600:1700:210:c270::3b]) by smtp.gmail.com with ESMTPSA id u6-20020a056808150600b003af6eeed9b6sm1294307oiw.27.2023.11.06.09.16.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 09:16:35 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Mon, 06 Nov 2023 11:16:34 -0600 Message-Id: Cc: "Tom Lane" , Subject: Re: psql not responding to SIGINT upon db reconnection To: "Shlok Kyal" From: "Tristan Partin" X-Mailer: aerc 0.16.0-59-g23ba54784a49 References: <1588058.1690220636@sss.pgh.pa.us> In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu Nov 2, 2023 at 4:03 AM CDT, Shlok Kyal wrote: > Hi, > > > That sounds like a much better solution. Attached you will find a v4 > > that implements your suggestion. Please let me know if there is > > something that I missed. I can confirm that the patch works. > > > > $ ./build/src/bin/psql/psql -h pg.neon.tech > > NOTICE: Welcome to Neon! > > Authenticate by visiting: > > https://console.neon.tech/psql_session/xxx > > > > > > NOTICE: Connecting to database. > > psql (17devel, server 15.3) > > SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA3= 84, compression: off) > > Type "help" for help. > > > > tristan957=3D> \c > > NOTICE: Welcome to Neon! > > Authenticate by visiting: > > https://console.neon.tech/psql_session/yyy > > > > > > ^Cconnection to server at "pg.neon.tech" (3.18.6.96), port 5432= failed: > > Previous connection kept > > tristan957=3D> > > I went through CFbot and found out that some tests are timing out. > Links: > https://cirrus-ci.com/task/6735437444677632 > https://cirrus-ci.com/task/4536414189125632 > https://cirrus-ci.com/task/5046587584413696 > https://cirrus-ci.com/task/6172487491256320 > https://cirrus-ci.com/task/5609537537835008 > > Some tests which are timing out are as follows: > [00:48:49.243] Summary of Failures: > [00:48:49.243] > [00:48:49.243] 4/270 postgresql:regress / regress/regress TIMEOUT 1000.01= s > [00:48:49.243] 6/270 postgresql:pg_upgrade / pg_upgrade/002_pg_upgrade > TIMEOUT 1000.02s > [00:48:49.243] 34/270 postgresql:recovery / > recovery/027_stream_regress TIMEOUT 1000.02s > [00:48:49.243] 48/270 postgresql:plpgsql / plpgsql/regress TIMEOUT 1000.0= 2s > [00:48:49.243] 49/270 postgresql:plperl / plperl/regress TIMEOUT 1000.01s > [00:48:49.243] 61/270 postgresql:dblink / dblink/regress TIMEOUT 1000.03s > [00:48:49.243] 89/270 postgresql:postgres_fdw / postgres_fdw/regress > TIMEOUT 1000.01s > [00:48:49.243] 93/270 postgresql:test_decoding / test_decoding/regress > TIMEOUT 1000.02s > [00:48:49.243] 110/270 postgresql:test_extensions / > test_extensions/regress TIMEOUT 1000.03s > [00:48:49.243] 123/270 postgresql:unsafe_tests / unsafe_tests/regress > TIMEOUT 1000.02s > [00:48:49.243] 152/270 postgresql:pg_dump / pg_dump/010_dump_connstr > TIMEOUT 1000.03s > > Just want to make sure you are aware of the issue. Hi Shlok! Thanks for taking a look. I will check these failures out to see if=20 I can reproduce. --=20 Tristan Partin Neon (https://neon.tech)