From: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
---|---|
To: | Alexander Lakhin <exclusion(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Neil Chen <carpenter(dot)nail(dot)cz(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com> |
Subject: | Re: BUG #17066: Cache lookup failed when null (unknown) is passed as anycompatiblemultirange |
Date: | 2021-06-29 20:22:27 |
Message-ID: | CAPpHfdt5gaCEgbNS=ch-KuSiaGQjQb1Angn+yDTFqeUWJMGkpw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sun, Jun 27, 2021 at 2:29 AM Alexander Korotkov <aekorotkov(at)gmail(dot)com> wrote:
> On Sat, Jun 26, 2021 at 12:02 AM Alexander Korotkov
> <aekorotkov(at)gmail(dot)com> wrote:
> > On Fri, Jun 25, 2021 at 7:00 AM Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
> > > Hello,
> > > 24.06.2021 02:35, Tom Lane wrote:
> > > > Alexander Korotkov <aekorotkov(at)gmail(dot)com> writes:
> > > >> I really appreciate a hint here.
> > > > I think I'm to blame for most of that code originally, so I'll take
> > > > a look soon. Been up to my neck in other stuff recently.
> > > I'm not sure whether it related to the initial issue, but there is
> > > another anomaly with the multirange types. (May be I should report it as
> > > a distinct bug?) The query:
> > > create table test_multirange(mr int4multirange);
> > > select count(*) from test_multirange where mr << int4range(100,100);
> > > produces:
> > > ERROR: unexpected operator 4396
> > >
> > > while
> > > select count(*) from test_multirange where mr << int4range(100,500);
> > > returns a result (as the multirangetypes test shows).
> >
> > Yep, that's a distinct bug. It seems that I've added some missing
> > operators, but forgot to add some selectivity estimates for them.
> >
> > I'll come with a fix soon.
>
> The patch is attached. It fixes some switches in calc_multirangesel()
> and calc_multirangesel(). Additionally, it improves regression test
> coverage for matching empty range/multirange.
>
> I'm going to push it if no objection.
Pushed!
------
Regards,
Alexander Korotkov
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Korotkov | 2021-06-29 22:06:34 | Re: BUG #17066: Cache lookup failed when null (unknown) is passed as anycompatiblemultirange |
Previous Message | Tom Lane | 2021-06-29 18:36:52 | Re: BUG #17076: Server crashes on composing an error message about invalid modulus for a new table partition |