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 1qqWBq-00AkU4-B4 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Oct 2023 10:11:42 +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 1qqWBo-00ErZ5-2n for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Oct 2023 10:11:41 +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.94.2) (envelope-from ) id 1qqWBn-00ErYw-0e for pgsql-hackers@lists.postgresql.org; Wed, 11 Oct 2023 10:11:40 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qqWBj-001S5s-Gz for pgsql-hackers@postgresql.org; Wed, 11 Oct 2023 10:11:39 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 17A1E5C0135; Wed, 11 Oct 2023 06:11:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 11 Oct 2023 06:11:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1697019093; x= 1697105493; bh=kXkX0W7fBpSTaSMyae0HsIGxpL4NKsP9Gw+Y7LM1qzQ=; b=c zYQ7kaSAkGN/Q2xwbmJDp+zt4AO8RYBgXZSt3NWFIvXBOQb29JJUlBJNZXt9uMnm RdTbsMxb5wPiiVoLLLbjCHTItaUiQ1kjJbHO3FajzbYCagoeD/fZMq9xFnd1pJ0S csAy8/GeegWrgnekHozhd30Vm+Y7dDyVOeNfBN6HO+vXtWaBqzd6UGt+RRGrmoQD tUErLyMdJHWFvXUfx6kXy7xrtLnP2vJb4712MxJLcr9X5WuXDAaIGqlRvtUGJnrv fVmR0hj4/JxLfBZYrKA+xt3saEHI0zJ60qSPGXyD6MUSvAhaY+IEfIgm1SVom96D wbZ56FxqqCrbRQVHfhb6Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheekgddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeehtddutdeugeekgfeijeegleekheefjeffledvtdetkeff hfevgeefvdelleetudenucffohhmrghinhepphhoshhtghhrrdgvshdpvghnthgvrhhprh hishgvuggsrdgtohhmpdhpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Oct 2023 06:11:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1697019090; bh=GttPBnOAY+VJgc6jFZOUWP2DfWIylAXxQosk0aF8v9U=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=XAYtA1VjjEBYkujkzc6aBoL8N+LxMq0jSvBb7rNTB5c6mpC48RjkqGUOJTHVQI1+c hwP5vse1tpcgmu7jcCkQKnxsz5rLlZZYne2MDtY10J1BVF9UzSZkXVLJm5jqMmW461 blsIO7iPS5I79hVRHQ91QvjgcFtBRVErWkqVlxGbbRh7IAQ+DqGPl0ZCm5r/96TXmB U78QnBKtdBlqkiJEF0u7x1sY0u8DcwjvJ3Po/woqNSLTQ5MmJteAghfHb5GumS1hWu cuIBQyyQu1NQqIN2KUILGnolRSxS5pEFIR4uUvaVB3aL9cqD+pumeWFlw39gFvCYul Or3wfMVRR8MNQ== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CDE9D3146; Wed, 11 Oct 2023 12:11:30 +0200 (CEST) Date: Wed, 11 Oct 2023 12:11:30 +0200 From: Alvaro Herrera To: "Imseih (AWS), Sami" Cc: Robert Haas , Amit Kapila , Benoit =?utf-8?Q?Lobr=C3=A9au?= , pgsql-hackers , Melanie Plageman Subject: Re: Logging parallel worker draught Message-ID: <202310111011.lyo66rk7k7pu@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <10D5C31A-A303-4440-BCA2-921440A9E1CC@amazon.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Oct-09, Imseih (AWS), Sami wrote: > > I think we should definitely be afraid of that. I am in favor of a > > separate GUC. I agree. > Currently explain ( analyze ) will give you the "Workers Planned" > and "Workers launched". Logging this via auto_explain is possible, so I am > not sure we need additional GUCs or debug levels for this info. > > -> Gather (cost=10430.00..10430.01 rows=2 width=8) (actual tim > e=131.826..134.325 rows=3 loops=1) > Workers Planned: 2 > Workers Launched: 2 I don't think autoexplain is a good substitute for the originally proposed log line. The possibility for log bloat is enormous. Some explain plans are gigantic, and I doubt people can afford that kind of log traffic just in case these numbers don't match. > Adding cumulative stats is a much better idea. Well, if you read Benoit's earlier proposal at [1] you'll see that he does propose to have some cumulative stats; this LOG line he proposes here is not a substitute for stats, but rather a complement. I don't see any reason to reject this patch even if we do get stats. Also, we do have a patch on stats, by Sotolongo and Bonne here [2]. I think there was some drift on the scope, so eventually they gave up (I don't blame them). If you have concrete ideas on what direction that effort should take, I think that thread would welcome that. I have not reviewed it myself, and I'm not sure when I'll have time for that. [1] https://postgr.es/m/d657df20-c4bf-63f6-e74c-cb85a81d0383@dalibo.com [2] https://postgr.es/m/6acbe570-068e-bd8e-95d5-00c737b865e8@gmail.com -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I'm impressed how quickly you are fixing this obscure issue. I came from MS SQL and it would be hard for me to put into words how much of a better job you all are doing on [PostgreSQL]." Steve Midgley, http://archives.postgresql.org/pgsql-sql/2008-08/msg00000.php