From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | bb ddd <nnickoloff1234(at)abv(dot)bg> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Question about Expected rows value in EXPLAIN output for Nested Loop node |
Date: | 2019-05-10 16:02:53 |
Message-ID: | f81393b9-6a49-60a5-0de3-d35996c81939@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 5/10/19 8:56 AM, bb ddd wrote:
> Thanks for the reply. Here it is: https://explain.depesz.com/s/LQCS
>
> My main trouble is not with this exact case, but i am looking for a general description of the algorithm how those numbers are calculated. In the meanwhile i also constructed a couple of artificial tables to experiment with and see how these numbers change, and am pretty sure my guesses there in the original question are quite close to what is going on, but would be so much easier to read explain plans, if there was some documentation about how the expected rows are calculated for different nodes, in different contexts (like when loops=1 vs loops>1) maybe what statistics they use, how they depend on the numbers of their child nodes etc.
>
>
How about?:
https://www.postgresql.org/docs/11/using-explain.html
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-05-10 16:13:58 | Re: Query on pg_stat_activity table got stuck |
Previous Message | bb ddd | 2019-05-10 15:56:41 | Re: Question about Expected rows value in EXPLAIN output for Nested Loop node |