From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com> |
Cc: | Richard Guo <guofenglinux(at)gmail(dot)com>, Nicolas Lutic <n(dot)lutic(at)loxodata(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: planner chooses incremental but not the best one |
Date: | 2023-12-17 22:33:45 |
Message-ID: | 3783538.1702852425@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com> writes:
> Yeah, seems like that's the right thing to do. FWIW I've been often
> confused by these fields, because we use tuples and rows as synonyms,
> but in this particular case that's not the same. I wonder if this is
> just a manifestation of this confusion.
For tables, one is the raw number of rows on-disk and the other is the
number of rows predicted to pass the relation's quals. For something
like an appendrel that doesn't enforce any quals (today anyway), they
should probably be the same; but you need to be sure you're adding
up the right numbers from the inputs.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Fan | 2023-12-17 23:22:31 | Re: Is a clearer memory lifespan for outerTuple and innerTuple useful? |
Previous Message | Tomas Vondra | 2023-12-17 22:18:37 | Re: planner chooses incremental but not the best one |