Re: Bad query plan when you add many OR conditions
Tom Lane <[email protected]> Fri, 10 Jan 2020 10:18:02 -0500
| Newsgroups | gmane.comp.db.postgresql.performance |
|---|---|
| Message-ID | <[email protected]> |
Marco Colli <[email protected]> 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