Re: pgsql: Convert 'x IN (VALUES ...)' to 'x = ANY ...' then appropriate

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Melanie Plageman <melanieplageman(at)gmail(dot)com>
Cc: Alexander Korotkov <akorotkov(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Convert 'x IN (VALUES ...)' to 'x = ANY ...' then appropriate
Date: 2025-04-07 09:15:03
Message-ID: CAApHDvryXfsJO1HUWqcQTBBxdSJDwrotnZFt7sSL-ddZ+g+f5Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Mon, 7 Apr 2025 at 19:39, Melanie Plageman <melanieplageman(at)gmail(dot)com> wrote:
> +++ C:/cirrus/build/testrun/pg_upgrade/002_pg_upgrade/data/results/subselect.out
> 2025-04-04 14:47:20.358393500 +0000
> @@ -2769,15 +2769,16 @@
> EXPLAIN (COSTS OFF)
> SELECT c.oid,c.relname FROM pg_class c JOIN pg_am a USING (oid)
> WHERE c.oid IN (VALUES (1), (2));
> - QUERY PLAN
> ----------------------------------------------------------------
> - Hash Join
> - Hash Cond: (a.oid = c.oid)
> - -> Seq Scan on pg_am a
> - -> Hash
> - -> Index Scan using pg_class_oid_index on pg_class c
> - Index Cond: (oid = ANY ('{1,2}'::oid[]))
> -(6 rows)
> + QUERY PLAN
> +---------------------------------------------------------
> + Merge Join
> + Merge Cond: (c.oid = a.oid)
> + -> Index Scan using pg_class_oid_index on pg_class c
> + Index Cond: (oid = ANY ('{1,2}'::oid[]))
> + -> Sort
> + Sort Key: a.oid
> + -> Seq Scan on pg_am a
> +(7 rows)

Are these failures from patches applied to master prior to 3ba2cdaa?

David

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2025-04-07 12:35:35 pgsql: psql: Clarify help message for WATCH_INTERVAL
Previous Message Michael Paquier 2025-04-07 06:46:48 pgsql: Fix grammar in log message of pg_restore.c

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-04-07 09:37:08 Re: BUG #18815: Logical replication worker Segmentation fault
Previous Message Bertrand Drouvot 2025-04-07 09:10:50 Re: Fix 035_standby_logical_decoding.pl race conditions