public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bruce Momjian <[email protected]>
To: PostgreSQL-development <[email protected]>
Subject: Generating "Subplan Removed" in EXPLAIN
Date: Tue, 31 Jan 2023 20:59:57 -0500
Message-ID: <Y9nHndOqZ/[email protected]> (raw)

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  <[email protected]>        https://momjian.us
  EDB                                      https://enterprisedb.com

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






view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Generating "Subplan Removed" in EXPLAIN
  In-Reply-To: <Y9nHndOqZ/[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox