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 1sy6KP-00EL8n-Dp for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Oct 2024 09:16:25 +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 1sy6KN-005oH2-Tq for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Oct 2024 09:16:23 +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 1sy6KN-005oFq-KZ for pgsql-bugs@lists.postgresql.org; Tue, 08 Oct 2024 09:16:23 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sy6KL-0035wR-Hr for pgsql-bugs@lists.postgresql.org; Tue, 08 Oct 2024 09:16:22 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2facf00b0c7so56866931fa.1 for ; Tue, 08 Oct 2024 02:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728378980; x=1728983780; darn=lists.postgresql.org; h=content-transfer-encoding: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=dRmgOgxg0EVVI2y4WB7W3BY7LvXl2NjO+nrMvEuopv4=; b=JVdAyAoowzZRHjImiG8usafUIswNYDTGSmBoexeGwbbK4Y7lQjGResz8CWWGFlt6oF 1poQCxD4Iym/19afRWZirWtXIzZ0gTp5q10Nn4TayWAdndqwlRI/2iO7/nX6QRLjI7U4 0BP8LfS1OL+aWpTLZnfpdM/+ArKvyj4VYy+kDIiSdpYF8/cfvBNU4CerQfKDLWKmGrml OI45CtulJKhTgwJmumyrnk7rzSfb89c889+RbuPJroSN/NE8NHhmGjm3fBkLh8DrR/OM SGe/x3Ak/ul2lve4XeEnSqcFa/4D7gasL/RwjQCtLfFXgi1Ut49pTFR/XfUm93vpQWYe PL7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728378980; x=1728983780; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dRmgOgxg0EVVI2y4WB7W3BY7LvXl2NjO+nrMvEuopv4=; b=VAtDH4uRcqtkk7l5LqrsaXviNg3UJwdfuk2jNsTU91ikcaGdzbwxhwTB7zK1xP97aI RYdAeqa+SlA8ckhAFxfUT/sr4XtpjcPsEwf2muO0w5zyA83e09brumu/DqyGTWmpkQTn z8LoE/4dXtGe17wUXsXGSIVUzLCz02nMS9Y4PMNtxwS8iUlvnpviVLU8iiIiSwmL1pd9 Sk54w1d/FeRlatEkF6bLonO3uQjt0tyfOUsWYXwVbpiziz/wp1tinmqIQra4gqCXOv6n uwiCICEv6gah1GR6Q6ZB9CCQrk6aXKYf2E+GctYz146TqvXff6G6uLWY3bFnG9/Y/l/t 9whQ== X-Forwarded-Encrypted: i=1; AJvYcCViNRYNrXvvTYhv9wEnI6ymNCugs0LLRde6czpKmxeVWfRhebQiiK5YE4Md46yYxNA4m2ydlFBEUwOV@lists.postgresql.org X-Gm-Message-State: AOJu0YykvSNJd17RvxaHdWJMqHa0nhYMDfebInuNEv8QufpQQIzNznJV Q9vjB8cpX8wWSEDDKKiFXp/FVbK9Wnruw3NeawWuaFMsy6G9mdC+ X-Google-Smtp-Source: AGHT+IGSrU11KwIIKYM08ZBMbwWF3EKc6UlVss9q9iPz1piW2XRygmBRvwRdNgjp7s5HUduTEHG5yg== X-Received: by 2002:a2e:4c11:0:b0:2ef:2f8a:52d5 with SMTP id 38308e7fff4ca-2fb0de83e89mr6692511fa.8.1728378979360; Tue, 08 Oct 2024 02:16:19 -0700 (PDT) Received: from [172.30.32.242] ([93.174.131.138]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2faf9b248f4sm10991371fa.78.2024.10.08.02.16.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Oct 2024 02:16:18 -0700 (PDT) Message-ID: <0c3b0e1b-55d1-42b6-8c3c-4392479187db@gmail.com> Date: Tue, 8 Oct 2024 16:16:13 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Reference to - BUG #18349: ERROR: invalid DSA memory alloc request size 1811939328, CONTEXT: parallel worker To: Craig Milhiser Cc: Thomas Munro , Tom Lane , pgsql-bugs@lists.postgresql.org References: <2878480.1727017360@sss.pgh.pa.us> <6785e9e8-4c64-41b0-9e72-c13d1822b599@gmail.com> Content-Language: en-AU From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/7/24 18:42, Craig Milhiser wrote: > > On Oct 1, 2024 Andrei Lepikhov wrote > > > Can you provide an explain of this query? > > Apologies for the delay. I have been travelling since Wednesday night. > Thanks for your help and time with this issue. > > Below is the query, with specific values redacted. An explain with > max_parallel_workers_per_gather = 2 and explain analyze > max_parallel_workers_per_gather = 0. I'm a bit confused: the thread subject named ' invalid DSA memory alloc request size ...', but you write about issue with OOM killer. It is two different issues, which one do you have exactly? OOM killer can be explained easily, because I see huge string_agg aggregate - workers can utilise memory more intensively. For now, explain of an Aggregate node don't show information about factual sort operation of each aggregate and memory consumption. -- regards, Andrei Lepikhov