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 1tki6M-006Avy-Bh for pgsql-admin@arkaria.postgresql.org; Wed, 19 Feb 2025 11:18:50 +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 1tki6K-007P6a-Ta for pgsql-admin@arkaria.postgresql.org; Wed, 19 Feb 2025 11:18:49 +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 1tki6K-007P6P-HI for pgsql-admin@lists.postgresql.org; Wed, 19 Feb 2025 11:18:48 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tki6I-001hSf-2T for pgsql-admin@lists.postgresql.org; Wed, 19 Feb 2025 11:18:47 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43937cf2131so44110475e9.2 for ; Wed, 19 Feb 2025 03:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1739963923; x=1740568723; darn=lists.postgresql.org; h=mime-version:user-agent:references:in-reply-to:date:to:from:subject :message-id:from:to:cc:subject:date:message-id:reply-to; bh=D2Tv9SDfshO28oirvdEAkRYBBfytluBYwrvFR0zCqOg=; b=pa8inQVHDVHSWkAwttjwpJntByhm9hIUoW5HbEWSSvUstA0kQ3fZduuC9TwksUY+OR PD9p/V9B9rra/7DiDu+P4hHYbUlVQ0AU4H53PYxmGXM71axEvunGy+UwJq82AKoxXoHb qjSsUL3c8YAVCwtej4JyfW/aBqobITXs0PQcUlQTdcWTx5u9nV5iWwAxZ52MIZmGIAC0 dDtgVUxAn4Vbs8b4ss2XSG6qbt4sZ+z82paobjYN1X81GMk1/FehwkuzNfSndeZnVs7Z TbghAEeBC2J2i1rz8fFZokybP8Bab/SAZIRsq9mhmvIojgACPNxpTQ48SQxyIA4rld6W hzYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739963923; x=1740568723; h=mime-version:user-agent:references:in-reply-to:date:to:from:subject :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D2Tv9SDfshO28oirvdEAkRYBBfytluBYwrvFR0zCqOg=; b=j30wQ1KNFLt1KZsgWOlwlD9/gp09k9neWixDKj/CfDQ/9gVvVPxFytGK+sbW3QRyRH 12NtmrzyMGbuNX5gkJEJrFkOxeBuc17YgP2iNeLNOuryz62U0AywdBoov7U0WnyBFtvC io1mueiBAfkw5vR3VIyVdFG87JvfH8iifqHK+TGcMxZdtUeBnbAOayG8C1osjAOABUkb /YIhEwCbf2LyLl0EmR5O/kc11KjUze3TbEnsIZrCgHcyyEOaeD+8iYiASPwOJQNGqyBw X2OqDFfud9Vc2VIqAM/yKC++/cOaSG8nfZmcvr0uJjJSLgsZcNTnH8sj+6M6k6IWyfZM jKNA== X-Forwarded-Encrypted: i=1; AJvYcCXi6KlrS+APK7c/2a5pOR36WNPStwkMnZNpbPHaHKnn+p/vKBDCRkP3DdVH0fI+P3I6lteRqVbF4MdV9A==@lists.postgresql.org X-Gm-Message-State: AOJu0YzR9+j6aKHVZeTGwnelMiYDfafsy0PtVMBLXVvBS6H6s2VRVgUD 9n6geOAc1fOfMzkAj4kmaXZ9lKwkqwbJp8+dgxjN0/u97tDBGFiwGBFItOwX3x4eG+PFA/SiJlV IgZtxQ2NPtSLKN8xHPchLY8WuYfHQzxqYAag1mkbs6DomJ9wwNirTpbbXOyGW+7d/EBH5Eiiyhk Q= X-Gm-Gg: ASbGncuRpZlSzmuvhu/tC/W9WWNp2N72zyELeBBY+uQIqnTRza9THvUXVSg9ygxSlUG AdDr8/LRy2hRgqa1wMmPr4LFDTjm72BLKs1do05NG7dDt7sNHx5RXjdgSUH3E3tsbgyB3sCIMfj drZMzMDtzhrK2l9r1wx0e7o3FjIMP3oYhfyXyYVz+iWit/vDE/IA2me2igTBidEvpacah2ClN91 9fJ/b8laurmAa4RVXKTdsqi0UjHwnzgZZJN8i4jr8fCs8l13xOFY50rrOT03Z7wz+BJYpHDbjIg 9iCx1pEotc4rysHy/ocFkw6MKYdC7I52jD8= X-Google-Smtp-Source: AGHT+IGLehzKkbun8v1H0emYeoIp31aLI4OqvryO+LFDRtw589cPJ5xFKcJU/hCM/pGKin5MiRifig== X-Received: by 2002:a05:6000:1447:b0:38f:476f:e176 with SMTP id ffacd0b85a97d-38f476fe35fmr11173739f8f.31.1739963923590; Wed, 19 Feb 2025 03:18:43 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:517b:7a17:db82:bac2:ea1d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f258fc7ecsm17371957f8f.49.2025.02.19.03.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2025 03:18:43 -0800 (PST) Message-ID: <359bfb1ceb886a765436b4ae1e98639f992abb5c.camel@cybertec.at> Subject: Re: Does export operation cancel SQLs? From: Laurenz Albe To: shammat@gmx.net, pgsql-admin@lists.postgresql.org Date: Wed, 19 Feb 2025 12:18:42 +0100 In-Reply-To: <40fe637f-d3a1-4af5-b100-2e7fedca72bd@gmx.net> References: <33a7cbf8b9a5bd90aa2797a1fca3f12e421639cd.camel@cybertec.at> <40fe637f-d3a1-4af5-b100-2e7fedca72bd@gmx.net> User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-02-19 at 12:10 +0100, shammat@gmx.net wrote: > Laurenz Albe schrieb am 19.02.2025 um 09:43: > > > We have PostgreSQL 16 running in GCP cloud SQL. When export job runs we > > > are noticing these messages excessively: > > > > > > db=postgres,user=postgres ERROR: canceling statement due to user request > > > > > > Does Export cancel the SQLs? If not, why are we noticing these messages > > > excessively during the export operation? The load on the instance is minimal. > > > > I am not sure what exactly you mean by "export". A pg_dump? > > But I am not aware of any operation that would cancel statements in other > > sessions. Perhaps someone or something in your application sends cancel > > requests when a statement is running too long, and the concurrent export > > slows down the system. > > What if the "export" is done on a read-only replica? > > Could this be a "canceling statement due to conflict with recovery" in disguise? That would be a different error message. Yours, Laurenz Albe -- *E-Mail Disclaimer* Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. *CONFIDENTIALITY NOTICE & DISCLAIMER *This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and solely for the use of the person(s) or entity to whom it is intended. If you have received this message in error and are not the intended recipient, please notify the sender immediately and delete this message and any attachment from your system. If you are not the intended recipient, be advised that any use of this message is prohibited and may be unlawful, and you must not copy this message or attachment or disclose the contents to any other person.