Re: Show estimated number of groups for IncrementalSort in EXPLAIN - Mailing list pgsql-hackers

From Ilia Evdokimov
Subject Re: Show estimated number of groups for IncrementalSort in EXPLAIN
Date
Msg-id 7949fb1f-fc3b-4748-b5b2-c55742bc296b@tantorlabs.com
Whole thread
In response to Re: Show estimated number of groups for IncrementalSort in EXPLAIN  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers
On 6/23/26 01:39, David Rowley wrote:
A couple of things about the patch:

1. I think the new est_input_groups field should be Cardinality rather
than double. Various other Path types and Plan nodes call this
"numGroups". I don't see any reason to deviate from that.
2. The header comment for cost_incremental_sort needs to be updated to
mention that p_input_groups may be passed as non-NULL to provide the
caller with the estimated number of sort groups.

Fixed in v2-patch.

--
Best regards,
Ilia Evdokimov,
Tantor Labs LLC,
https://tantorlabs.com/

Attachment

pgsql-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements
Next
From: Shlok Kyal
Date:
Subject: Re: Support EXCEPT for ALL SEQUENCES publications