Re: pgv18: simple table scan take more time than pgv14

From: Andres Freund <andres(at)anarazel(dot)de>
To: James Pang <jamespang886(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pgv18: simple table scan take more time than pgv14
Date: 2025-06-20 15:02:23
Message-ID: rxzsol5j35mwobd5nyt7irrvax4rixjwpakfd3ailbiksyoypd@lahae6pjihz4
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2025-06-20 09:46:06 +0800, James Pang wrote:
> same OS RHEL8, install pgv14.11 and pgv18.beta1_3, both installation by RPM
> from pgdg, and use similar postgresql.conf.
>

> 14.11

> Time: 55.082 ms
> postgres=# select * from tt where b ~~ 'a%';
> a | b
> ---+---
> (0 rows)
>
> Time: 54.716 ms

> 18.beta1
> postgres=# select * from tt where b ~~ 'a%';
> a | b
> ---+---
> (0 rows)
>
> Time: 77.117 ms

I tried but failed to reproduce this. In fact, I see both 17 and 18 being
faster than 14.

Have you checked if 14 and 18 actually use the same collation?

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-06-20 15:20:43 Re: Removing rm regress.def
Previous Message Alexander Borisov 2025-06-20 14:51:24 Re: Improve the performance of Unicode Normalization Forms.