Generating "Subplan Removed" in EXPLAIN

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Generating "Subplan Removed" in EXPLAIN
Date: 2023-02-01 01:59:57
Message-ID: Y9nHndOqZ/+os7hC@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Our document states that EXPLAIN can generate "Subplan Removed":

https://www.postgresql.org/docs/current/ddl-partitioning.html#DDL-PARTITION-PRUNING

It is possible to determine the number of partitions which were removed
during this phase by observing the “Subplans Removed” property in the
EXPLAIN output.

However, I can't figure out how to generate that string in EXPLAIN
output. I tried many examples and searched the web for examples but I
can't generate it in queries using git master.

For example, this website:

https://gist.github.com/amitlan/cd13271142bb2d26ae46b69afb675a31

has several EXPLAIN examples that show "Subplan Removed" but running the
queries in git master doesn't generate it for me.

Does anyone know how to generate this? Thanks.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Embrace your flaws. They make you human, rather than perfect,
which you will never be.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2023-02-01 02:06:16 Re: Worth using personality(ADDR_NO_RANDOMIZE) for EXEC_BACKEND on linux?
Previous Message Michael Paquier 2023-02-01 01:58:46 Re: Worth using personality(ADDR_NO_RANDOMIZE) for EXEC_BACKEND on linux?