Re: How to use index in simple select

2025-12-01 Thread hubert depesz lubaczewski
On Sat, Nov 29, 2025 at 12:57:46AM +0200, Andrus wrote: > Hi! > > Table has index on name column: > >         CREATE TABLE firma2.klient >         ( >             kood character(12) primary key, >              nimi character(100), >            ... >         ); > >        CREATE INDEX IF NOT EXIS

Re: How to use index in simple select

2025-11-29 Thread Andrus
Hi! Seems to be already answered: "It looks like reindex table firma2.klient restored index scan. create index concurrently was used when lot of transactions using this table where running" Is it possible that reindex changes query from sequential scan to use index ? Andrus.

Re: How to use index in simple select

2025-11-29 Thread Adrian Klaver
On 11/29/25 09:47, Andrus wrote: Hi! Seems to be already answered: "It looks like reindex table firma2.klient restored index scan. create index concurrently was used when lot of transactions using this table where running" Is it possible that reindex changes query from sequential scan to u

Re: How to use index in simple select

2025-11-29 Thread Adrian Klaver
On 11/28/25 14:57, Andrus wrote: Hi! Table has index on name column:         CREATE TABLE firma2.klient         (             kood character(12) primary key,              nimi character(100),            ...         );        CREATE INDEX IF NOT EXISTS klient_nimi_idx         ON firma2.