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 1tM3Ia-001K4f-Ig for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Dec 2024 10:53: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 1tM3IX-005887-Um for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Dec 2024 10:53:31 +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 1tM3IX-00587t-Il for pgsql-hackers@lists.postgresql.org; Fri, 13 Dec 2024 10:53:30 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tM3IR-002cwq-2H for pgsql-hackers@lists.postgresql.org; Fri, 13 Dec 2024 10:53:30 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 255D011401E4; Fri, 13 Dec 2024 05:53:21 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Fri, 13 Dec 2024 05:53:21 -0500 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:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1734087201; x=1734173601; bh=s WtI3qffKBsNL4Kv+xDUZMFAQI2fJ9iA098BcX0G3Cg=; b=Q2fPk3ojMwBvUvayI pGnyxpOgNS+Dzf7kGvbi1bO0yXSpQPTtTdt7w1+BcmAEP0QjQBUUEkGXeIol9LcE cDFCVobLUAkxuOBVXKnLIWzob/0n+gyz/cthcgzi68v7qw+n1f0j1cauBW3HWoBZ 4osr4vXV54hX/DXBtTvIOUANBVIJEgZp2rPC0dL9cMsaOiCqLKkkSRqplrS0UT2P DvGsM4hvGEGd4X/6J2G2Qfc2YMjVtVawgxF+ezJf07WNyWSq8K9s5HFogk1ThbbY XZS+B/vWlOsVI1uG8UWjtvkbxWU7sqOeUtZcteS2G0eK5PCvXrVeobnh89DvK++R EfI4g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeejgddvudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohepuddupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeelvghrthhhrghl ihhonheisehgmhgrihhlrdgtohhmpdhrtghpthhtoheprghshhhuthhoshhhrdgsrghprg htrdhoshhssehgmhgrihhlrdgtohhmpdhrtghpthhtohepughgrhhofihlvgihmhhlsehg mhgrihhlrdgtohhmpdhrtghpthhtohepjhhirghnrdhunhhivhgvrhhsrghlihhthiesgh hmrghilhdrtghomhdprhgtphhtthhopeifrghtrghrihdrhihuhigrsehgmhgrihhlrdgt ohhmpdhrtghpthhtohepiihmlhhpohhsthhgrhgvshesghhmrghilhdrtghomhdprhgtph htthhopehthhhomheslhhinhhugidrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggt khgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopegrrd hlvghpihhkhhhovhesphhoshhtghhrvghsphhrohdrrhhu X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 Dec 2024 05:53:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1734087197; bh=uXOVqbkcdZg/7MmdPD44I9eQpmycYE+uPsG+FzOyMt8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=qlRqmpRQVYszCHIBmRb3fRSsw7r8lLb5Yjxi9K/JjsA6BIIru0bnJPzjgbwbAiSko TgkU4T9KRRLO8XOHjdt2VtNh6wvMuTP+WaVEd1W+9YkZtZLk9a1ElFP8SSj1doX0KQ c75k97T3fBo5aWLeBA3uuKc/RhXc/d+T4D3Iv0nE4Ae15/swnluDEh88EZFk6vZ/MR 8X8E24EDXtA0InTbKC7Ds7o0sbWsShOTcuRdQmBiX0S6VlfII5t7Y7U/0pUMbclw2N Zj3C48M0dLjSD3g8hMR2UYqmYckWzw9NIC8aaBoLrPv27BiaR0PYBUcq9cU2LMA2+X 9Dl/JgBRK0x4g== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 9B8339E; Fri, 13 Dec 2024 11:53:17 +0100 (CET) Date: Fri, 13 Dec 2024 11:53:17 +0100 From: Alvaro Herrera To: Yuya Watari Cc: Ashutosh Bapat , Dmitry Dolgov <9erthalion6@gmail.com>, PostgreSQL Developers , jian he , Alena Rybakina , Andrei Lepikhov , David Rowley , Thom Brown , Zhang Mingli , Tom Lane Subject: Re: [PoC] Reducing planning time when tables have many partitions Message-ID: <202412131053.rq2sbzwiyszf@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, On 2024-Dec-13, Yuya Watari wrote: > Thank you for your reply, and I'm sorry if my previous emails caused > confusion or made it seem like I was ignoring more important issues. Not to worry! > > Memory usage and planning time in production builds [are] important. > > You can better spend your energy there. > > As you said, we have another big problem, which is memory usage. I > will focus on the memory usage problem first, as you suggested. That's great, thanks. BTW I forgot to mention it yesterday, but I was surprised that you attached Ashutosh's old patch for planner memory usage reporting. This feature is already in EXPLAIN (MEMORY), so you don't need any patch to measure memory consumption ... or does your patch add some detail that isn't already in the code? > After fixing those problems, we can revisit the assert-enabled build > regressions as a final step if necessary. What do you think about this > approach? Sounds good. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food" (Donald Knuth)