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 1tKlAC-00Abnp-9y for pgsql-performance@arkaria.postgresql.org; Mon, 09 Dec 2024 21:19:32 +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 1tKlA8-00Bhwi-SE for pgsql-performance@arkaria.postgresql.org; Mon, 09 Dec 2024 21:19:30 +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.94.2) (envelope-from ) id 1tKiiR-00ApZN-5F for pgsql-performance@lists.postgresql.org; Mon, 09 Dec 2024 18:42:44 +0000 Received: from sienna.cherry.relay.mailchannels.net ([23.83.223.165]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tKiiK-001wbt-HC for pgsql-performance@lists.postgresql.org; Mon, 09 Dec 2024 18:42:42 +0000 X-Sender-Id: hostpapa|x-authuser|eric@blackbrook.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E66CA1620AB for ; Mon, 9 Dec 2024 18:42:33 +0000 (UTC) Received: from s128.servername.online (100-98-71-70.trex-nlb.outbound.svc.cluster.local [100.98.71.70]) (Authenticated sender: hostpapa) by relay.mailchannels.net (Postfix) with ESMTPA id 6DA491628F4 for ; Mon, 9 Dec 2024 18:42:33 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1733769753; a=rsa-sha256; cv=none; b=4zr8myGEyetJ5Tu8F1Epg1g/byWb5KWEx9Aq5K57heiExdKIxPeAJKC4FpT1fgKhVjYNUw tR/BbnoNzLXhDfuWm6kwxXq9bxWIY8frNxcOvFfc9dARM0byOI/Afw3bQPnUm7qphXiq+W 5VBnPTx0Q5hX6DQ91GXEhybddjKu5dJv3cVQ5aZrebt5pWB3Ai9kVHYsEvEghn+3m9tDJm 0eBn9tVY7W8J9luXcvB9AlmVtcjluzUuGpxtCQO21gYpCFWgRV+jBRxYlxybPXg0rey9e/ oymKWBEBqKrNC55Uh1R6uRLLrUAlfjtbNva4aaldLu5t37QDxxgVMbGv7vzJGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1733769753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=8wbFFy9NUBmPsV/gi6LfP19mk81kNqrmHRKNWeQJx3c=; b=FDxbirso3Agczlq67u2amiEYSMjv0YyO9byyA4QKA+iq3H80YvZARVOaXjNa8JvbvsQ5jx kvzVQoF7/eogpgGjHTwoqy7u5PQOa8MsLERGL+aVG/Gns+aMU4k7mAS0XuWVRh86iU9sTR NaWOmdvNeRURH+Pu2qHbacImM0onYs4pSlFUQL5mUCNP/tK8lyVFuvHchN0LDklw8oBT7j g8FcP/an64eQucNOePPXMFzHNR7nFtS7sk5j9/lZiOwJdLRR7v47Bkc4QJdIRQmXKkYYXp +IZ+3WQx1xcMp4ChyU97V4RlwhW6LzulBHhX9VvCMsJQU/YhRt0zzs4y2iFtgg== ARC-Authentication-Results: i=1; rspamd-5d9d86ff64-jpv7h; auth=pass smtp.auth=hostpapa smtp.mailfrom=subscriber@blackbrook.org X-Sender-Id: hostpapa|x-authuser|eric@blackbrook.org X-MC-Relay: Neutral X-MailChannels-SenderId: hostpapa|x-authuser|eric@blackbrook.org X-MailChannels-Auth-Id: hostpapa X-Interest-Versed: 1a23d38676b3b929_1733769753696_1646302365 X-MC-Loop-Signature: 1733769753696:2492120263 X-MC-Ingress-Time: 1733769753695 Received: from s128.servername.online (s128.servername.online [204.44.192.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.98.71.70 (trex/7.0.2); Mon, 09 Dec 2024 18:42:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=blackbrook.org; s=default; h=Content-Transfer-Encoding:Content-Type:Subject :From:To:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8wbFFy9NUBmPsV/gi6LfP19mk81kNqrmHRKNWeQJx3c=; b=Hcyd+UCAY2cYTyZmf4z7LJqfRJ 3uMABZExfUOM6Xk7CuDxpdHM0MvMAsUCocfjrTZPN+246Tu1om+IjRdBxLA2Vbp30fnrJshB+2Rfu S53Zh4Lhoh+smLZbU35myY0bZhXKnNNOg7Y+RjqAKnOkka6k2955ywu6JHmAxDSCs/1Ww1sAbBSNP ibLUB4dS0IhowBxu2g6p7B+D84rRC+Yc+yz0CWuLGCUDJY1Kk4jQmOG6ncFbZXW/ry17X6plsl5py SlysgjaU4d2NOhzx5Ixe/KgNYf3DsN2iTcNfSYLzlYKx+qDpphrVM03KNw3mgNhQa6ahSujtJdMx/ +F3pbGGw==; Received: from 217.sub-75-216-46.myvzw.com ([75.216.46.217]:48768 helo=[192.168.0.3]) by s128.servername.online with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1tKiiG-009ipZ-0j for pgsql-performance@lists.postgresql.org; Mon, 09 Dec 2024 10:42:33 -0800 Message-ID: Date: Mon, 9 Dec 2024 13:42:30 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "pgsql-performance@lists.postgresql.org" Content-Language: en-US From: Eric Schwarzenbach Subject: can a blocked transaction affect the performance of one that is blocking it? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: eric@blackbrook.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, Could one transaction (one that should be relatively simple and short) cause another complex, long running transaction (involving INSERTS, on a table the first transaction may be reading from) to take many orders of magnitude longer than it would normally? (short of competing for system resources, like CPU time etc, of course) I don't believe my scenario involved a deadlock but I expect my short transaction was probably blocked by my long one. Does it make any sense that this could very significantly affect the performance of the non-blocked transaction? Thanks, Eric