Re: Sort returns more rows than seq scan? - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Sort returns more rows than seq scan?
Date
Msg-id CAFj8pRBdYQMUeDoxBGN9=84zjdDJDp9wfZdCo_=_04z6MPWTAQ@mail.gmail.com
Whole thread Raw
In response to Re: Sort returns more rows than seq scan?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers


2016-03-01 15:45 GMT+01:00 Tom Lane <tgl@sss.pgh.pa.us>:
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I don't understand how is possible to get more rows from Sort node than in
> nested seq scan?

The "extra" rows are re-fetches triggered by mark/restore requests from
the parent mergejoin.  The EXPLAIN instrumentation counts re-fetches as
if they were new rows.

aha,

Thank you for explain

Regards

Pavel
 

                        regards, tom lane

pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: WIP: Upper planner pathification
Next
From: Tom Lane
Date:
Subject: Re: WIP: Upper planner pathification