Re: Terribly slow query with very good plan?

From: Les <nagylzs(at)gmail(dot)com>
To: Nick Cleaton <nick(at)cleaton(dot)net>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Terribly slow query with very good plan?
Date: 2022-02-04 10:38:53
Message-ID: CAKXe9UD4t=f6r-pwT=-CmsmKxn1F2ojDWGBE1ctkoA27cESEOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>
>
>>
>> First of all, it CANNOT start with '%'. This is a fact and this fact can
>> be determined by analyzing the query. Something that the query planner
>> should do, right?
>>
>> Second argument: the same query is also slow with the ^@ operator...
>>
>
> Oh I see, the query planner does not know that there will be no %
> characters in file and folder names.
>
> On second thought, it does not explain why it is also slow with the ^@
operator.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Nick Cleaton 2022-02-04 10:57:13 Re: Terribly slow query with very good plan?
Previous Message Les 2022-02-04 10:09:52 Re: Terribly slow query with very good plan?