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 1w89E3-000Fot-1H for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 04:00:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w89E1-003jTX-18 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2026 04:00:09 +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.96) (envelope-from ) id 1w89E0-003jTP-3A for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2026 04:00:09 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w89Dy-000000008Kf-1ctC for pgsql-hackers@postgresql.org; Thu, 02 Apr 2026 04:00:08 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-486fd3a577eso3089405e9.1 for ; Wed, 01 Apr 2026 21:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775102404; x=1775707204; darn=postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Ra/4P93/N6JuMsLv0WDzDZkAMDYEpK9IU/0+eHiTew8=; b=sxU1W5fpCwviqk+cUBZb0TG/CGQUlpSXfEaK00pqqnhklT2CFGChHZTPCSWBrIPxwl yNQLYU/MEg5aj+eBsRMMNTgxls/1X1Ldgo30tPMAvq0WJ2r7t8zu6X6JsdsWtnjz6S/O PXKqZ0qO20WNtNVvstkbP7pOs1ZJ1nu0J7uZFt/HFrc7qfL8qMc0qR7pNzO21egEFuzN YfwiL6l3qX0OuiyljzEaZV8JlSgqtSLKxZv57G9Cckkf9R4s+c/1PPCjD8b0LRJ04NMe QbNGZ1L88tGZofcEeUkfUjaHV+iJ8hd8P0JA7ogXv55qU+X6csrSbmV2msF0Ot50Fxg3 t53Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775102404; x=1775707204; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ra/4P93/N6JuMsLv0WDzDZkAMDYEpK9IU/0+eHiTew8=; b=ivdi5f9lvFzx24qWBnhXwCVXoYnXx40jM6COhvC4o7Ffk0g5bgRVJAsDZ5l3p3Fqcb 7GV6qe77zhr5Uu9pVlRsMEFlzqVUUr4hx3Ot3Y0QS5y0vBXGXTlPYswN7/cUrT3/9y2z RoF57tNxRyUobkHNxAVVlwuPAJXU221LaU7UCMKIDmYHmy69kKagnCPJD/1f0opzzRtR re7UuZEinaR78iNS9jVWrJJYp4rB8vApgnKtn6Zm5cKJaxI+qvfbKHYkwJe6fTok5r1n h7c2yehFPUbv8o9HHa5Hx9YwNpmAv3RY5sdqfmT9RPBsLNcriYs/274EzkjpEnQQ7WoH aonA== X-Forwarded-Encrypted: i=1; AJvYcCWqHFVZfcIUqVT+jDW8WhATNOrFYvNM6a6xSgT/Qdl7MESP5Zod2eKWUJDzbHu9htS2+FpVO9Hy67845pBe@postgresql.org X-Gm-Message-State: AOJu0Yy+GT/vy4E4WAsm1XhpKCaGnJGOUxmnc7kaOQZ76KRfBYDXxF5r QRAk1gduKcSjaWRLsc3HFQw0tyVKyGnQZ8WYwszu959vpUuGKbzUjri/ X-Gm-Gg: ATEYQzxwiEsO/SHSR6T0Zy263wP3i93Parfwsho9vtv8rphOpJZN278cJwsUNDTSUOF Io/jUnucfiJ2o2c8F8e3Rxhw5cpvFEYwWSH0lbMZC5n61YVRMEZduQRiS3cs4VavAZFOErQapj6 SikH4AVYh2XnE2YXnySFhb/3tifCe0fxgxE+/IYXTkcLZTANnI4WVIdco0hZtcSV4cVsPUi8XmR UpnAHre5B65ULVFRBZDA25Y7sJdWUm2WJJ+vZ1NkUlwOxS2vBe9ZPwlykMoYs9zXZoIOZxPAGuS xos6vHJKXO2ui99n1Imq5CBF7uiNcx1khfGzgI+E21a9CU6hYlRbHZ3KW2V4AWA/EyCT76sBnlh lZePmghU8NOCiDMl3gpvYS3PTKCVJq9urvYBOXm32tNd+Ox7UUUQYEWdrVzaKvpwrGMvEpiund0 09OlIUI4LIivDCVUPe9yuhvA74 X-Received: by 2002:a05:600c:1f11:b0:485:39d1:b4dd with SMTP id 5b1f17b1804b1-48883575eb7mr95262965e9.10.1775102403189; Wed, 01 Apr 2026 21:00:03 -0700 (PDT) Received: from [192.168.0.50] ([89.149.68.143]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4888a7165aasm48406535e9.14.2026.04.01.21.00.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Apr 2026 21:00:02 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------0vnBrB7130IX3P2LnxnyXf5L" Message-ID: Date: Thu, 2 Apr 2026 07:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PROPOSAL] Termination of Background Workers for ALTER/DROP DATABASE To: Tom Lane , Tomas Vondra Cc: Michael Paquier , =?UTF-8?B?SXdhdGEsIEF5YS/lsqnnlLAg5b2p?= , Peter Smith , =?UTF-8?B?S3Vyb2RhLCBIYXlhdG8v6buS55SwIOmavOS6ug==?= , Pavel Stehule , Chao Li , pgsql-hackers References: <1020519.1773863522@sss.pgh.pa.us> <3074140.1775074810@sss.pgh.pa.us> Content-Language: en-US From: Alexander Lakhin In-Reply-To: <3074140.1775074810@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------0vnBrB7130IX3P2LnxnyXf5L Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello Tom and Tomas, 01.04.2026 23:20, Tom Lane wrote: > Alexander Lakhin writes: >> I think this can explain slow CommitTransactionCommand() and why it >> happens not every time. Regarding other animals, I guess they can >> experience the same bumps but not exceeding 5 seconds (50 tries). Thus, >> from my understanding, for the failure to happen, we need to have slow >> storage and initialize_worker_spi() -> CommitTransactionCommand() reaching >> XLogFileClose(). > So, it remains not very clear why only widowbird is showing this > failure, but I think we can safely take away the bottom-line > conclusion that hard-wiring a maximum wait of 5s in > CountOtherDBBackends() was not a great idea. There also were two failures from jay: [1], [2], but yes, widowbird is getting more and more consistent in that aspect: [3], probably because of the storage (SD card?) degradation. Tomas, maybe you could check if the write speed is more or less acceptable there? Regarding the test-specific fix, let me remind of the other failure from widowbird: [4]. [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jay&dt=2026-03-10%2019%3A26%3A19 [2] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jay&dt=2026-03-24%2020%3A43%3A24 [3] https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=widowbird&br=master [4] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=widowbird&dt=2025-10-25%2010%3A35%3A03 Best regards, Alexander --------------0vnBrB7130IX3P2LnxnyXf5L Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hello Tom and Tomas,

01.04.2026 23:20, Tom Lane wrote:
Alexander Lakhin <exclusion@gmail.com> writes:
I think this can explain slow CommitTransactionCommand() and why it
happens not every time. Regarding other animals, I guess they can
experience the same bumps but not exceeding 5 seconds (50 tries). Thus,
from my understanding, for the failure to happen, we need to have slow
storage and initialize_worker_spi() -> CommitTransactionCommand() reaching
XLogFileClose().
So, it remains not very clear why only widowbird is showing this
failure, but I think we can safely take away the bottom-line
conclusion that hard-wiring a maximum wait of 5s in
CountOtherDBBackends() was not a great idea.

There also were two failures from jay: [1], [2], but yes, widowbird is
getting more and more consistent in that aspect: [3], probably because
of the storage (SD card?) degradation.

Tomas, maybe you could check if the write speed is more or less acceptable
there?

Regarding the test-specific fix, let me remind of the other failure from
widowbird: [4].

[1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jay&dt=2026-03-10%2019%3A26%3A19
[2] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jay&dt=2026-03-24%2020%3A43%3A24
[3] https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=widowbird&br=master
[4] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=widowbird&dt=2025-10-25%2010%3A35%3A03

Best regards,
Alexander
--------------0vnBrB7130IX3P2LnxnyXf5L--