Re: Weird seqscan node plan

Andrei Zhidenkov <[email protected]>
Newsgroups gmane.comp.db.postgresql.general
Message-ID <[email protected]>
At this point I disagree. It’s faster to fetch one row using seq scan that using index scan as well as fetching number of consecutive rows is faster via seq scan. Index scan is not always faster.

> On 27. Nov 2019, at 04:53, Игорь Выскорко <[email protected]> wrote:
> 
> Why planner mistakes in determining the number of rows (every time planner expects only 1 row) in this step I can understand - inner nodes do some joins (inner and outer with filtration) and it's hard to predict result.
> But what I can't understand is why seq scan when it is always slower than index.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.