public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: =?GBK?B?s8LR47fJ?= <[email protected]>
Cc: [email protected]
Subject: Re: Estimate of the inner_rows
Date: Sun, 08 Sep 2024 12:50:34 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
=?GBK?B?s8LR47fJ?= <[email protected]> writes:
> postgres=# explain select * from test t1 left join test t2 on t1.b = t2.b and t2.c = 10 where t1.a = 1;
> QUERY PLAN
> -----------------------------------------------------------------------------
> Nested Loop Left Join (cost=0.85..48.16 rows=7418 width=24)
> -> Index Scan using a_idx on test t1 (cost=0.43..8.45 rows=1 width=12)
> Index Cond: (a = 1)
> -> Index Scan using b_idx on test t2 (cost=0.43..39.64 rows=7 width=12)
> Index Cond: (b = t1.b)
> Filter: (c = 10)
> (6 rows)
I tried to reproduce this and could not. What PG version are you
running exactly? Can you provide a self-contained example?
regards, tom lane
view thread (3+ messages) latest in thread
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], [email protected], [email protected]
Subject: Re: Estimate of the inner_rows
In-Reply-To: <[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