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 1vdi6V-003lV2-33 for pgsql-performance@arkaria.postgresql.org; Thu, 08 Jan 2026 04:58: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 1vdi6U-000HTP-2v for pgsql-performance@arkaria.postgresql.org; Thu, 08 Jan 2026 04:58: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 1vdi3G-000DEt-0G for pgsql-performance@lists.postgresql.org; Thu, 08 Jan 2026 04:55:14 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdi3E-005DE7-1d for pgsql-performance@lists.postgresql.org; Thu, 08 Jan 2026 04:55:14 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-7b75e366866so797706b3a.2 for ; Wed, 07 Jan 2026 20:55:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767848111; x=1768452911; 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=1rdPgz3SKKMpAch3PnT/6yLQCIYUiSzn3OKZloWlQLU=; b=mYdHmQMKzCtlrzwUv/eJH/j01YEQMhzx7GZub3DGyy18Ht49tthyHSkfdFA4dt4tqi kMCasiXiXwt1wnM8ugLBBb3ye7dPxmZFIFiRj3PzOUomA3ibM7Hyx4wsdP+hQ7dKZlZs a9smLb4bzNsfUHCbV6qjHahQzttjJSLG+J5B5Pdr0Be+w2QwEDkmyrQFNAZS3nLeK/9P m3obpApL+rB7IXp4OmRQedrywJEewOJZw9QISYwZVU0wQPdyrjw5cWZLjJH1E7EC7Rth K4S0R84/6CTkqjl6OKb1iXqD2TqIcccUIhRe9m0SRD/otc7dNVofUtjEpe1rdEgNrf9e 75Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767848111; x=1768452911; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1rdPgz3SKKMpAch3PnT/6yLQCIYUiSzn3OKZloWlQLU=; b=gpn0Hr41ERZt0FopCE+E6RnLPzaZrfoVVa8gbwXbx1vfmGb6mvO7SVc66SIhE4Uj10 fK/09WsV0PssFfXGjETxA/AUpPg4UXc6hnRP0DCzEtUjtcD9AiqYY1rc3c+Hjo1OhxuA csNNKc4cgEEI5HdEIGlvDYcMfs/G897mtX1/uW5KfuRfEzy9ETDVftAyhasdOwH4QPyE opsuZuY6Md6nby9c4EfDNlzWEHG5tA1BXRpwuShfa039umZreuN6pkkFOlc13NOmFNgH Gv1tL3uGrfaXts/ksBat30669Ne2yALyi3hxwRpsYdBamrp4YsGPzZgZ4+H91StMqba1 GdAg== X-Forwarded-Encrypted: i=1; AJvYcCUI1ZjuxDK+x09xtyT+dsL9n0Nrczs8ZSPcGG1qTs2xVcC7AzlFe20ROgoHawstkBWda48VoAT8AcJSkVhLNTcL0w==@lists.postgresql.org X-Gm-Message-State: AOJu0Yxo3LXY7cYcKqxf13U7W2NMPGh+cdXJvb3M3zoWmNqV5GNyaRuM B31JdqyZDlaiSfRlzJxyGoSuAYrvj0V9l54PKuwwMKxg7gb/8/flxpUZ X-Gm-Gg: AY/fxX7dsqtOCSfaWw2V8uxk0J4iXPsipLR2zcrrePM6fQ7vol5VU06b2vVA9lTSJT0 8q0mqTbeJ+1DBW24OhfGMn/APavSgi0RVNnNUm+8+VVbtSRMvSkvwBQv6M1CxxXPBVoAIc4Hu4/ On1GIyMttOE0ZJSIlpAn0t/0JiCrVUT0CtXsZDhpCPQr2jt5aEoc+WBc81rS/DZcrcSlrQb7SSB c2h782O34RoKbWVNG6WcOU9dkRMXZbwWTjw7+R6btBJ1cTsJgl9KGwB+R5OW+uv5RgAFc9GnBEl 4TrMqr+HHAjGDmb8Dn2oq2vWjHJZI1cvpb03GmMzoy/h6YUq28PfUj67N3HoFfPlEvz8zKOQPkh IzlRXWoW26iCYz8qGlMigmsW/jTwnyMPcB+nIvLCCcKliF5zWZbLrZv5ygMXqRjqPK5hEeTkiWH jThet3vS2EHcUNI6M04+ZQl+zE0UxwXqTelPoNwZUuqYIs4uRLtiH3u/w8rOuNCjEErg== X-Google-Smtp-Source: AGHT+IFv6r+p+oPjNjj1vb5kIdBGRnd40QKmCiCsQ1p54+g5E5KstzIt9sTfHcbzAYbkdjsTbb2k3w== X-Received: by 2002:a05:6a00:418d:b0:7e8:43f5:bd4e with SMTP id d2e1a72fcca58-81b7fbd25eamr4117232b3a.58.1767848110640; Wed, 07 Jan 2026 20:55:10 -0800 (PST) Received: from ?IPV6:2404:4400:414b:1700:b092:c6d0:7613:982b? ([2404:4400:414b:1700:b092:c6d0:7613:982b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819c5de6405sm6324809b3a.61.2026.01.07.20.55.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jan 2026 20:55:10 -0800 (PST) Message-ID: Date: Thu, 8 Jan 2026 17:55:06 +1300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unexpected planner choice in simple JOIN To: Tom Lane Cc: David Rowley , pgsql-performance@lists.postgresql.org References: <71afdb09-0583-4af2-a3b3-50da4f987b9b@gmail.com> <1895375.1767846864@sss.pgh.pa.us> <02d73d5c-bfd8-4d88-9c5d-2f298bcffa78@gmail.com> <1896854.1767847913@sss.pgh.pa.us> Content-Language: en-US From: Mark Kirkwood In-Reply-To: <1896854.1767847913@sss.pgh.pa.us> 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 Right makes sense - as I noted...the 'wrong' plan is still pretty fast... On 08/01/2026 17:51, Tom Lane wrote: > Mark Kirkwood writes: >> A point comes to mind - this is not a particularly unusual setup (i.e >> relatively small parent table with big child one), so maybe the defaults >> are not ideal here? > Very probably. To my mind, the default costs for parallel query and > JIT are both unduly optimistic and tend to drive the planner to use > those features when you'd be better off without. The reason there's > not been more argument about them is that the downside of using those > features on a too-small query is bounded, while the upside of using > them on very-big queries isn't. So nobody's invested the effort to > gather enough evidence to back choosing a different set of defaults. > > regards, tom lane