Re: Bad query plan when you add many OR conditions - Mailing list pgsql-performance

From Tom Lane
Subject Re: Bad query plan when you add many OR conditions
Date
Msg-id 28696.1578669482@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bad query plan when you add many OR conditions  (Marco Colli <collimarco91@gmail.com>)
Responses Re: Bad query plan when you add many OR conditions  (Marco Colli <collimarco91@gmail.com>)
List pgsql-performance
Marco Colli <collimarco91@gmail.com> writes:
> As you can see it is a *index scan* and not an *index only* scan... I don't
> understand why. The index includes all the fields used by the query... so
> an index only scan should be possible.

Huh?  The query is "select * from ...", so it retrieves *all* columns
of the table.

            regards, tom lane



pgsql-performance by date:

Previous
From: Marco Colli
Date:
Subject: Re: Bad query plan when you add many OR conditions
Next
From: Marco Colli
Date:
Subject: Re: Bad query plan when you add many OR conditions