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 1wi3ei-000Yhb-0c for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2026 05:20:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wi3ee-00G0wj-1c for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jul 2026 05:20:05 +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 1wi3ee-00G0wZ-0D for pgsql-hackers@lists.postgresql.org; Fri, 10 Jul 2026 05:20:04 +0000 Received: from mail-yx1-xb132.google.com ([2607:f8b0:4864:20::b132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wi3ec-00000000QSu-2zia for pgsql-hackers@postgresql.org; Fri, 10 Jul 2026 05:20:03 +0000 Received: by mail-yx1-xb132.google.com with SMTP id 956f58d0204a3-667b76205f1so460099d50.1 for ; Thu, 09 Jul 2026 22:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ardentperf-com.20251104.gappssmtp.com; s=20251104; t=1783660802; x=1784265602; darn=postgresql.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=luzQUagXYfbMliyZcvTLXTdVQ3rGX4Sv4PSGYTWUedM=; b=BpbN10lT9xTwSJVVy5S8/PaViDerrq5mAL1W/HgYesFH9NevB5IYvHWnHjOua0qgcW /XprNkCkQRfwnvSL/Pz/Z3Oyx3qyRrocNmlRfIv6nh0Khwvu24ZRZkNoM7LQH1ZYt3C6 VHrOD1qhu5UDLIezl20b5AtVYSiR53MwnAu34ozx3xAnLaYQ1H18ANvfUmShotJLv+KE TbRFVkw79SyRDpiwWZI/V5E/O+iykRs4M0q3UW7h3m/o35/0KGoV/Cuci3y/LWtDr4S9 c3aOc0fUPIP9UyWD80XLyOtSQbhSBwLMEzlA86miikXxb2HINM+u+0PMgHnpgOLbbnQh HOrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783660802; x=1784265602; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=luzQUagXYfbMliyZcvTLXTdVQ3rGX4Sv4PSGYTWUedM=; b=Xu3mansrN78TYhOOXenwby45b0+eG457IcR7XCfcnPS8cG+60RWYUfenxIiSAvmUXC 4gzdsWCc3uZcbygIkHYhzH6uhzwrTiOsEQCcsWSWrbG6of6GggJqy5H6EWEtKM2HM6/3 o/G5TzWDGCpg01j2n1u9S0g+cr6EqC0gxGQ/RrFBUphHXIQ8o4o8KrOwoxBqoPH9JhRA Co3d+2C0JUJ7u4G208Lmjc/+fr89xOUqioMkvVQ51Kfh4fboZBtGDK/whhwbmB7MC6PK oGr9SEP+zM81OhrXYDl3vxLimg7IFbRZ4WDufWhVksrfXcpcj5dU/Dm+kZyj6Ut8ndaf EOyw== X-Forwarded-Encrypted: i=1; AHgh+Rpab5MODONSTJUBN+xDyJTYMAFVV7LBpS6KAeMIULaJc1t/wPavM4RLYfbZZtGqq3gUEmgKALR7ui8fBRkY@postgresql.org X-Gm-Message-State: AOJu0Yyeech+P2e7F4yRc0ln/IU3Q+YRf4haABliz/4QUUv9ifvI3Vhq CE0/kT0sA/guXqdPsGpiaRrwLXtm0OZm/xAeK/ltWKC9LLTk+oszUM27a/3WJa3XzY4NJFHAlL+ cR1JdJA== X-Gm-Gg: AfdE7ckucGGNcNS42RKUFZ+F3XtK98ybQxcsY+qPsXdbwEUIrBIlA1vlOv8txqObVzw 4I8L1W+WQgnd7C4u5xr7+oJb6ICaDW/ztSR1xvZ9iTqZNa5rMAJ3gfgiKsrOT0ESaEhYrePYGzQ oyO+sHVZFLBjrY4a5fNUZckOvpqHg4VWjRc1J+Pr5K6/Fo7WmdRtNs5nm9vw1UvrY8hRvO5QGp9 bvxdzmRysTmyXXbizWJw+OsmHoIIuxsEK/tqUPBC+K/4tXvSxIYLsZJwaCtYvBJNt8WjLemrAfr isLpHKreaIOFCDzTm0DT3USecc5iCm/kaLcoOuLq7Soi7MBqFsnvEN73yxuxdvrfkE617XHgn0U nIedSRaFgRrGLra2koopz04sOLHIWfMyQpjcwLfB+Je9RJ2MpwUg6QfKu90sDRc/nR/v4RpZDrx TkO8WGMdpy92ICyOabtQN3FSYd8plja08gUUc/8eSRZ1g98cHQfLGVRMRfVU6jt//ge8ljGOMEP DRaj1PqeY8= X-Received: by 2002:a05:690e:d8a:b0:667:8b90:2eb8 with SMTP id 956f58d0204a3-6679f2bb345mr7556682d50.87.1783660802452; Thu, 09 Jul 2026 22:20:02 -0700 (PDT) Received: from ardentperf.com (97-113-70-203.tukw.qwest.net. [97.113.70.203]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-6678775df90sm6067036d50.2.2026.07.09.22.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 22:20:01 -0700 (PDT) Date: Thu, 9 Jul 2026 22:19:55 -0700 From: Jeremy Schneider To: Anthonin Bonnefoy Cc: Jakub Wartak , Srinath Reddy Sadipiralla , PostgreSQL mailing lists Subject: Re: hang during shutdown Message-ID: <20260709221955.50de31cf@ardentperf.com> In-Reply-To: References: <20260708194951.34705f93@ardentperf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 9 Jul 2026 09:09:25 +0200 Anthonin Bonnefoy wrote: > As you didn't have a shutdown checkpoint, the symptoms look very > similar (though you didn't confirm whether you were using logical > replication, so I'm gonna assume you do). No logical replication. Are we sure this only impacts logical and not physical? Thanks for the pointer - interesting one. We do use physical replication. Replicas were shut down and they closed their connections to this writer instance around 04:25 just before pg_ctl stop was executed on the writer itself. Something was on the writer DB's CPU before shutdown; metrics show total CPU for that linux namespace (k8s pod) around 0.86 cores until 04:24 and then the CPU starts dropping when the database shuts down. Bu 04:28 the CPU is under 0.01 cores and the CPU remains effectively zero until the processes are SIGKILL'd 30 minutes later. -Jeremy -- To know the thoughts and deeds that have marked man's progress is to feel the great heart throbs of humanity through the centuries; and if one does not feel in these pulsations a heavenward striving, one must indeed be deaf to the harmonies of life. Helen Keller, The Story Of My Life, 1902, 1903, 1905, introduction by Ralph Barton Perry (Garden City, NY: Doubleday & Company, 1954), p90.