Re: Index plan returns different results to sequential scan

From: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
To: John Burns <john(at)impactdatametrics(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Index plan returns different results to sequential scan
Date: 2024-03-21 19:27:00
Message-ID: 72600f8a-4231-45b7-a116-8ceec5ccf66e@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 3/21/24 18:25, John Burns wrote:
> Hi…
>
> ...
>
> Although the postcode package is probably not especially significant
> in the scheme of things , the behaviour of indexed versus non-indexed
> queries is worrisome.
>

Seems like a thinko in the indexing, but that's just a guess.

> I’ve had to make a couple of minor changes to the postcode package
> as the Postgres versions have changed, i.e. define TRUE and FALSE in
> the c header files and change the location of the include files when
> Postgres 16 arrived, but nothing else.
Can you share a patch with the tweaks?

>
> I’ve attached a sample data file to populate a table that exhibits
> the behaviour, and the tweaked version of the Postcode package.
>

I don't see any attachments :-(

regards

--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Wolfgang Walther 2024-03-21 20:16:46 Re: Regression tests fail with musl libc because libpq.so can't be loaded
Previous Message John Burns 2024-03-21 17:25:00 Index plan returns different results to sequential scan