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.96) (envelope-from ) id 1vqWQt-00CO9K-1M for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Feb 2026 13:08:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vqWQs-008b1b-2M for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Feb 2026 13:08:35 +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.96) (envelope-from ) id 1vqWQs-008b1T-1R for pgsql-hackers@lists.postgresql.org; Thu, 12 Feb 2026 13:08:35 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vqWQr-00000000Jhz-0Gqp for pgsql-hackers@lists.postgresql.org; Thu, 12 Feb 2026 13:08:34 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-b8f7a30515aso220007266b.0 for ; Thu, 12 Feb 2026 05:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770901711; cv=none; d=google.com; s=arc-20240605; b=iN7WPRvJj8KWDEdeU/p1mMhcZzCQaZ0X33vHh4Aemk3QSQCKeE7Gx4gW0MD2urCi5p W9JOaTg5InM3oX8vJTzm+v12lwprtfQu7H76UG6X75Bj9AG4/ENl0v3qA1gOeAD4QbXn kWIHOFaD0KU3MeXWHwRlxzwsI53r9U4pLW9zVmZQrnmiWeLTCt6miMnc/U4JTv/2ny+t 0mLj9vpFegp3+G+1VTtX83iGYN6GoqSiCr30P7zXRJW0kPD0z+WyPNEO6x4ux7ErZ8nC Jb4ErKd0W4T1an6sBZxblKRIS3mOpHjSNRtm8EybAHeCeEYHP8kK34QrhqwnauBsag0Y qDZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BAycBOPbB0M6EumgWttLsGhBuCwb/6sHhkLzRI8FlpA=; fh=XYSFevIL9aKUx9/H8XfhoxQt2o6QLuiWPWAk2Qf70yM=; b=fcavIvsoNmAL0ZHWOV9AgXtlYQLSZrlGKWiaVzAIgeU9bQSNa2xNAanknrCCyTQJMC MK71j23cghclFLE0kwxZ1t7GtZW07742CjnmaHZLwSYzbbMb4qvtSuQdnNGGB9U5JvMS mLwRriGNJsR0QogRcyI7uk1loDVxT4Bv46Djf7x/3rDkcjSEMkeKxpasTSf/B32ydCc+ C+HbiJZHOgd0q99lDwf4XFiEbecr06b8BpYP69P1SlPhglivAXnPEDLAoDcbeir/sItd 33rP88zdt1TxEwqRude1c5Tdvr6KnUiS6/4YSwYsV6Icy1x4Rx0G8UhPTawecgjcOPkp uiGQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770901711; x=1771506511; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BAycBOPbB0M6EumgWttLsGhBuCwb/6sHhkLzRI8FlpA=; b=l4qFdSs9zKTSnAvwZf2Y7Cbr45tlYNGx8rD118MHJ5Gb3YMvRSqVMKzrNJFpG9Snt5 altHWyFsDD5iCJBWhvcOqJAf14b7rr28uiMHteXDo762VIAG87ZFM7ZMdYgbqyQbzd5A yPW7wBGEPVolh81wSb0T59QkOfEJK34cluOguMlOKpBgcYP3lk/u+YCl0tRc6z7uyHfM zK3PJk4GXni1dwLVBK6lUgz2jjzQaQU+gIPY5+Gd/vA8LeMYRcoI88s8lLTh9dC1FX8c f8/Dr8a6dvoRW660VRvqjqRmPwW3kF9ZAqW1O4OuWrkr9JfoVo5n2dIKjYh4DJzzshdu jjDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770901711; x=1771506511; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BAycBOPbB0M6EumgWttLsGhBuCwb/6sHhkLzRI8FlpA=; b=S5/0H3D8bZ8WGSNAP6XX08gDAAMBCYUwAq8NIMHOL4ZWB/H3jwdun8Uyj3xAtFLH77 U8bE7WMt/ul+nm1S/Dcm+aR9bXAw6a70BQptMsdjm8sUDZ81qqcMTVJ8wZLBcdcsmubh vZcAcXb5d6R0QTNT2VHF9k9yjLYgmwhJdz5guWlVeFmZkmOh7WfSS+s/GX2PRHAWMsqu ZolTs6EdQEcWE55uY/Jl/eFlC6kUfKYqnKpJ8FFzRoq9IftQ275PohCnuZ/CtzyxIsH6 ugEs049CZvxIXw0yBEaljA6kkL3jEih1ufvWTpxRJE5LDg4cm9Q6MZycMHmaLxR3UrF4 TBQg== X-Forwarded-Encrypted: i=1; AJvYcCVH7qwOP/EoNDhD2mh/F+/6v9J/7ZIBXf0R3MwppuRByVc4cji8O4mOzdK3YGhWfZQ3dUNeD1tltUc1zWkQ@lists.postgresql.org X-Gm-Message-State: AOJu0YxPaeu5j4HxyNQZEINRMcLvFDinyCYi97RC/ULhaZvu1Jyj9wPB 0bYixn0xg6vl++sUmfb/ENMvke3GySlCi4APLyhY80wm66labC3OK9xKzkV0GIND9XoFhn1kpI/ 8DfuU8a3835nITl2L9OTPjz0N2gfSV/A= X-Gm-Gg: AZuq6aJ9gxM31d37FbJkLizZrDf6acvItKA3HdPn1QZ0G3U05fk2G3ayO93kwo4+Fju xeHNz3WBaiPbUwWL8u+rz1scMPkWVWac0JHoZSQXy5tBsdhKJYyRJ73cUeHBq3Uyeo9VrMp+kd8 FUNmIB46pBgu0YRX1vplb9D5czqYax9M184myTcc4bBResRMbgY49WJUtByVqLsyxdgErwt+DTC nQWEHTpe7Y08IeIO6+4uv7UBLvKFadgTTPfNZ+6DcnzdTrUYX67lu2aG6fTadsHoTP9fmWb6BIQ YrzdpO5Pb5xtbhZd2SS9dso5xhuG24eui+6VBZIOt+19oi66fw== X-Received: by 2002:a17:907:7b8d:b0:b8e:fdc1:5f1c with SMTP id a640c23a62f3a-b8f8f27ace0mr150409266b.15.1770901709148; Thu, 12 Feb 2026 05:08:29 -0800 (PST) MIME-Version: 1.0 References: <1136161.1769654478@sss.pgh.pa.us> In-Reply-To: From: Robert Haas Date: Thu, 12 Feb 2026 08:08:16 -0500 X-Gm-Features: AZwV_QgUzRIY2WaOtUM8mXcy0NLtv-z-VrUdGaEpzFDKQnuWN1goV_3am_2VnTQ Message-ID: Subject: Re: pg_plan_advice To: Ajay Pal Cc: Alexandra Wang , Richard Guo , Lukas Fittl , Tom Lane , Jacob Champion , Dian Fay , Matheus Alcantara , Jakub Wartak , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Feb 12, 2026 at 6:41=E2=80=AFAM Ajay Pal wro= te: > pg_plan_advice failed to match JOIN_ORDER advice because the genetic > algorithm never attempts the specific join path requested. Seems expected. It is bad if using GEQO results in a crash or if the advice cause the expected outcome when the path is considered, but if the randomness of GEQO causes it not to consider the path the user wants, then the user either needs to stop using GEQO, or use less-strict plan advice, or just understand that this kind of outcome is a possibility. Thanks, --=20 Robert Haas EDB: http://www.enterprisedb.com