Re: Functions and Indexes

From: Moreno Andreo <moreno(dot)andreo(at)evolu-s(dot)it>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Functions and Indexes
Date: 2024-11-19 08:42:43
Message-ID: 145e1c71-c0c6-473d-bc89-86cbd106b58b@evolu-s.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 18/11/24 15:43, Gianni Ceccarelli wrote:
> On Mon, 18 Nov 2024 15:37:57 +0100
> Moreno Andreo <moreno(dot)andreo(at)evolu-s(dot)it> wrote:
>
>> If a column appears in the WHERE clause (and so it should be placed
>> in index), in case it is "processed" in a function (see below), is it
>> possible to insert this function to further narrow down things?
> You probably want to look at
> https://www.postgresql.org/docs/current/indexes-expressional.html
>
Hi Gianni,
    correct. That's a good starting point (now I have to add complexity
since the index should have 4 columns, one of them is referenced with LIKE)
Thanks!
Moreno

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Moreno Andreo 2024-11-19 10:53:44 Re: Functions and Indexes
Previous Message 張宸瑋 2024-11-19 08:40:46 Re: Re : Credcheck extension