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 1sL2YF-00DAur-Qd for pgsql-general@arkaria.postgresql.org; Sat, 22 Jun 2024 15:21:15 +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 1sL2YD-00AOdt-Th for pgsql-general@arkaria.postgresql.org; Sat, 22 Jun 2024 15:21:14 +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 1sL2YD-00AOdk-Ic for pgsql-general@lists.postgresql.org; Sat, 22 Jun 2024 15:21:13 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:510a::3]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sL2Y9-00309J-OE for pgsql-general@postgresql.org; Sat, 22 Jun 2024 15:21:12 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R3" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS id E8120C01100; Sat, 22 Jun 2024 17:21:07 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id 883673AB2B; Sat, 22 Jun 2024 17:21:07 +0200 (CEST) Date: Sat, 22 Jun 2024 17:21:07 +0200 From: Christoph Moench-Tegeder To: Andreas Joseph Krogh Cc: pgsql-general@postgresql.org Subject: Re: AI for query-planning? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.13 (2024-03-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ## Andreas Joseph Krogh (andreas@visena.com): > Hi, are there any plans for using some kind of AI for query-planning? Actually, we do have our GEQO - Genetic Query Optimization - already in the planner: https://www.postgresql.org/docs/current/geqo.html As per the common taxomonies, genetic algorithms are part of the larger "Artificial Intelligence" domain - they're just not part of the current hype cycle (some of us still remember the early iterations of neuronal networks, or fuzzy logic, or...). > Can someone with more knowledge about this than I have please explain why it > might, or not, be a good idea, and what the challenges are? Just waving your hand and saying "AI" three times in a row does not manifest an usable algorithm. Going the full way from a problem to be understood and solved to algorithm to implementation requires more effort - and especially with all the "hot off the hype press" ideas that already fails in the very first stages. Remember just recently, when some people were "predicting" that all databases would become blockchains? Regards, Christoph -- Spare Space