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 1tGnhS-000pQU-LU for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2024 23:13:30 +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 1tGnhN-0024Qc-OF for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2024 23:13:26 +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 1tGnhN-0024QU-Bu for pgsql-general@lists.postgresql.org; Thu, 28 Nov 2024 23:13:26 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tGnhL-00039t-BE for pgsql-general@postgresql.org; Thu, 28 Nov 2024 23:13:25 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2ffd6af012eso16520031fa.2 for ; Thu, 28 Nov 2024 15:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732835602; x=1733440402; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=ChdnQpPcw72sXcctk8T8BNNqHG8RD+ZtwdU3rHPTSOg=; b=IwRYtmCaxpYWllgWZJCEKr8YVjm2UvBSDHZOxtsD8yUmQovUKnD9sa2VESzcb3CEKb Gmm3guWJAmdqB96aCuMWKoO0+hTELePbFTWFUFtba+PWZN4VUl0UOZPOyZNaLX6ETA+c YS0pwQSm5YbsUfPnkkVpZaXgcNEZftGvLrTiAancdSCxW2eCrww8Rymth85TKvRFX5WB eNcbIFUp0RKvUKsMkcOivlJlr38Bj/vHOfyoe2RZRmudkScLiGcZbxhQD1CDaom7SoA6 9a5+26p4V7iROu4OZozzRj9wAEZgmLdwbmj1QBH6oZarvd+5Xxq4+sDafdjQYMMVWqFJ hlwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732835602; x=1733440402; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ChdnQpPcw72sXcctk8T8BNNqHG8RD+ZtwdU3rHPTSOg=; b=coze/PGQW6sWMJmZy/IJgNpkSMU2T5XsiYipuh78GaM3nyZTHODWVVUAM42QhH7iTm 8GSDFYpDIncTp8Y/LiC00kwuY1t0xbpgRU80fu8yap4/5jUYeFTnDt/Jg14RwNpEH0uk W701tqvzjxRztYRytFuYkz/PKH96YAeBuJB/gzXlrdZBHVuTyVStZNw7O+AGl009Si4P SbQungsXJWj/oh+PFKqoCvj4B8d7cC1iQW/2w3xYI6AhV3j6tnMSExQuWdYde4RTfmDC 7PKgb92VBifiV2UjedOtmlrjS4c7x+FPtOy3tIPSEgFlC0cn5Q71I3PwcPqUGIwmxOXO 3R0A== X-Gm-Message-State: AOJu0YyLbzqzKXFC6ljX0a0q28XxOWLXTvIJDiTJNYhQCkxzU3oDr8/d tneTlsSVPyluFpr8qBXP/9V8iKhBw+2ZZksYlOhlRK46rk4LOT4Pn/ItYXmdGB6DX5l/eF0xDTJ EpnsXF3E+/d9c47mHyMpGraHTQvg4Aw== X-Gm-Gg: ASbGncs3ey7KWSaB//tTmzRM5I2AdxavA+/ui/QWJU2KxF8cCB79phZJVS73h0me5pl e1ztjSgyt0azWXzUYP1jXqzEY83YA2MJj X-Google-Smtp-Source: AGHT+IGcAi3FhaNj0J8bJ+bTzp8Yx4mMG/o20z7BlteRr36jLVL+grEFkoCvUIp1A1UARheQdJplMugZ0hi81cMFXaU= X-Received: by 2002:a05:651c:502:b0:2ff:a96b:db95 with SMTP id 38308e7fff4ca-2ffd6043327mr53299571fa.3.1732835601774; Thu, 28 Nov 2024 15:13:21 -0800 (PST) MIME-Version: 1.0 References: <2090950.1732810550@sss.pgh.pa.us> <23000.1732819862@sss.pgh.pa.us> <374985.1732833325@sss.pgh.pa.us> In-Reply-To: <374985.1732833325@sss.pgh.pa.us> From: Bertrand Mamasam Date: Fri, 29 Nov 2024 00:13:10 +0100 Message-ID: Subject: Re: ERROR wrong varnullingrels (b 3) (expected (b)) with LEFT JOIN LATERAL and CTE To: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="0000000000007f80300628013a33" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007f80300628013a33 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 28, 2024 at 11:35=E2=80=AFPM Tom Lane wrote= : > I wrote: > > Thanks for the test case! A quick "git bisect" says I broke it at > > cb8e50a4a09fe541e32cd54ea90a97f2924121a1 is the first bad commit > > commit cb8e50a4a09fe541e32cd54ea90a97f2924121a1 > > Author: Tom Lane > > Date: Fri Aug 30 12:42:12 2024 -0400 > > Avoid inserting PlaceHolderVars in cases where pre-v16 PG did not. > > Apparently that change was less safe than I thought. Looking ... > > Fixed here: > > > https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommitdiff;h=3D= 85990e2fd5610576635c65db9292297b1730c947 > > Thanks for the report! > Excellent ! Thank you very much !!! Bertrand --0000000000007f80300628013a33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 28, 2024 at 11:35=E2=80=AFPM = Tom Lane <tgl@sss.pgh.pa.us>= wrote:
I wrote:
> Thanks for the test case!=C2=A0 A quick "git bisect" says I = broke it at
> cb8e50a4a09fe541e32cd54ea90a97f2924121a1 is the first bad commit
> commit cb8e50a4a09fe541e32cd54ea90a97f2924121a1
> Author: Tom Lane <tgl@sss.pgh.pa.us>
> Date:=C2=A0 =C2=A0Fri Aug 30 12:42:12 2024 -0400
>=C2=A0 =C2=A0 =C2=A0Avoid inserting PlaceHolderVars in cases where pre-= v16 PG did not.
> Apparently that change was less safe than I thought.=C2=A0 Looking ...=

Fixed here:

https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcomm= itdiff;h=3D85990e2fd5610576635c65db9292297b1730c947

Thanks for the report!

Excellent ! Than= k you very much !!!

Bertrand
--0000000000007f80300628013a33--