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 1u1h8T-006Z1Z-6I for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Apr 2025 07:43:13 +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 1u1h8R-00DAa7-DH for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Apr 2025 07:43:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u0jW5-001opj-SP; Fri, 04 Apr 2025 16:03:37 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u0jW3-002wYM-1K; Fri, 04 Apr 2025 16:03:36 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5e61d91a087so3686945a12.0; Fri, 04 Apr 2025 09:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743782614; x=1744387414; 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=VJrRltDrDBi/3SXejDqhnLi8CM3TfCjT1XNCxseh7Y8=; b=Wn9Jpq8DmxJNNxVfzqw1JGSCFx7qrsmAQbKTHGjBZbRD6d8joN9HQNRarrrl/Zm8hD dmMINKo0dVOLDUUieXMKpy+uQ2cwwN0HxJwUb/DDtDhq3lV9AN5tkbSEZgiDLhuDHOqi EKQ40SNTYpI1ewmJtIqMPYLfkXvWJ5GM8fnJmIF/RZgKvk++REgdUfPTGdaGK/ZO1Usk YJSJCjas2xF4s3HkJe9WXXfXn9GOuhVEZUeAiYWdnDgeRYF9ZkNEhSU60XxO5KzeFAuN TR9ylM7AAJpUDKSRDA/2JF344quhxTPtLY8hIrllyHHZURVid5Z5/XM+iWzTsl8oRbuV Sj5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743782614; x=1744387414; h=content-transfer-encoding:cc: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=VJrRltDrDBi/3SXejDqhnLi8CM3TfCjT1XNCxseh7Y8=; b=kOm9zAdd4cmyfA61889GvBIEfeMaewvvU9DMAF9LmWSfzQxumzxP6q+f85YHRrB2Ga J3FF0NZ3IXF4kunNDPtghBmSLdOlctq3h7bi9Fd5m2gsDBfO/UQHg/A2GRt4Ay1AIGZq qSJjfGMXdJW6Dcx7iPLjRDKttaK2zouVJ7rd57nY6SJfr3xOICQh33EE4zjBXs3THYc5 LMnXSMbPBxJ9cJX6dJ5jUC0oY1psGxohdGB2/snT6ec8SZ09a0Ys/ueGZnHOf+wWgpJW Tf+SluoELs5cH2hlMlrzXac1SqzyEI5yiufPrYdRIatPp3aLJ/8VDoMyQAQBjsI/Zf5i SqzA== X-Forwarded-Encrypted: i=1; AJvYcCUbAqe2T5g/qTnqUEY7fq2bpouvhBell9VhyvVD2uBJimPiDN09U7i8GTQ0weRX8LjtGLRkXDXPBI8l8l3j2g==@lists.postgresql.org, AJvYcCVlbJ02mNm6G4OgBW8244cvIMAzWPxLuh4oFxn+HJJCnopx7KUbKG92StGObSj+2brGkMJwY6sITxgBaVmMwGi+@lists.postgresql.org X-Gm-Message-State: AOJu0Yx6qlfQOcWp9ggaKAPuk8FlPLZ2BlUQarX3T64x2fVcifXUKAQg ffM6xk2B+BaMRgPK1SZt1i6lXgMsNElW7LtpcEHrogUUHECEfTrfRGUa5wZw1N0Q+UMElWVj0O8 rTpNLHNiKsbsPkizr2QgrLKJH7vE= X-Gm-Gg: ASbGncvKnAbp1OdGSQcx7ubmBD8sxRgoq4iW05GLGa6GEBgqtNI5AyNqxhTuxwlHHXV 2ucJBMCpdeExT1yOel6zQiT7undm3vjJE81uOr20op3vCACS90gmeJuarfbBD+r9Fi+ryC9qnPx takIRwea90y9L8Aeczjh1vENA1lfadyViAuQ== X-Google-Smtp-Source: AGHT+IFqdRqlcgcs07kLbCC/XvwZsnYgjHqkZOhiLEjewmh4PP0b820MfBazc01j+o3UcVcGD6MDCC5l2paflYVrbYQ= X-Received: by 2002:a05:6402:1d55:b0:5e5:c5f5:f78 with SMTP id 4fb4d7f45d1cf-5f0b4311c9dmr3048857a12.26.1743782613486; Fri, 04 Apr 2025 09:03:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Korotkov Date: Fri, 4 Apr 2025 19:03:21 +0300 X-Gm-Features: ATxdqUEHeuaOBud82Jl2jeIlIjiQF0pjbCgUcq8Fh76WWgG5IVHCGIA9-osSSJE Message-ID: Subject: Re: pgsql: Convert 'x IN (VALUES ...)' to 'x = ANY ...' then appropriate To: Melanie Plageman Cc: Alexander Korotkov , pgsql-committers@lists.postgresql.org, 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 Fri, Apr 4, 2025 at 6:47=E2=80=AFPM Melanie Plageman wrote: > > On Fri, Apr 4, 2025 at 9:17=E2=80=AFAM Alexander Korotkov > wrote: > > > > Convert 'x IN (VALUES ...)' to 'x =3D ANY ...' then appropriate > > > > This commit implements the automatic conversion of 'x IN (VALUES ...)' = into > > ScalarArrayOpExpr. That simplifies the query tree, eliminating the app= earance > > of an unnecessary join. > > I haven't looked at this patch, but it seems likely that it is related > to the recent failures I noticed in CI in the subselect test when the > regress suite is run by 002_pg_upgrade.pl Thank you for pointing. I'm looking right now. ------ Regards, Alexander Korotkov Supabase