public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jean-Christophe BOGGIO <[email protected]>
To: Paul Jungwirth <[email protected]>
To: [email protected]
Subject: Re: Strange behaviors with ranges
Date: Tue, 27 Aug 2024 21:54:24 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
Paul,
Le 27/08/2024 à 20:11, Paul Jungwirth a écrit :
> The issue is the order-of-operations used by the planner. If I put
> EXPLAIN on your last query, I see:
>
> Hash Join (cost=16.64..109.90 rows=2410 width=64)
> Hash Cond: (tmp_limitcontrats.idcontrat = paliers.idcontrat)
> -> Seq Scan on tmp_limitcontrats (cost=0.00..35.50 rows=2550
> width=4)
> -> Hash (cost=14.27..14.27 rows=189 width=12)
> -> Seq Scan on paliers (cost=0.00..14.27 rows=189 width=12)
> Filter: (numrange(((qtep1 + 1))::numeric,
> (qtep2)::numeric) <> '(,)'::numrange)
>
> So we are applying that filter to every row in paliers, not just the
> one with idcontrat = 1003.
I understand, makes perfect sense. Thanks for the explanation. Have a
nice day,
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: Strange behaviors with ranges
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